3v4l.org

run code in 300+ PHP versions simultaneously
<?php $desc = '{"a":1, "b":2}'; $ob = '{"a":1, "b":2, "c":3}'; function isLikeThis(string $description, string $tested) { $args = array_map(function($arg){ get_object_vars(json_decode($arg)); }, func_get_args() ); return !(bool)call_user_func_array('array_diff_assoc', $args); } var_dump(isLikeThis($desc, $ob));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0160.00616.63
8.3.50.0110.00718.16
8.3.40.0150.00618.90
8.3.30.0090.00618.90
8.3.20.0070.00020.34
8.3.10.0050.00323.66
8.3.00.0080.00022.43
8.2.180.0150.00316.50
8.2.170.0130.00319.03
8.2.160.0090.00922.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.21
8.2.120.0040.00426.35
8.2.110.0070.00419.30
8.2.100.0000.01118.03
8.2.90.0030.00619.22
8.2.80.0040.00417.97
8.2.70.0030.00717.49
8.2.60.0090.00017.93
8.2.50.0000.00818.10
8.2.40.0080.00022.08
8.2.30.0070.00019.22
8.2.20.0050.00317.72
8.2.10.0050.00318.23
8.2.00.0040.00417.86
8.1.280.0100.01025.92
8.1.270.0040.00423.80
8.1.260.0030.00628.09
8.1.250.0040.00428.09
8.1.240.0130.00322.68
8.1.230.0060.00617.77
8.1.220.0040.00417.78
8.1.210.0000.00818.77
8.1.200.0030.00717.47
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0080.00018.38
8.1.160.0040.00422.06
8.1.150.0000.00718.81
8.1.140.0040.00419.50
8.1.130.0040.00417.67
8.1.120.0000.00717.51
8.1.110.0000.00817.47
8.1.100.0000.00717.45
8.1.90.0040.00417.44
8.1.80.0000.00717.36
8.1.70.0000.00717.39
8.1.60.0080.00017.63
8.1.50.0080.00017.59
8.1.40.0080.00017.52
8.1.30.0030.00617.52
8.1.20.0050.00317.55
8.1.10.0040.00417.57
8.1.00.0000.00817.43
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0050.00218.50
8.0.270.0000.00717.27
8.0.260.0000.00617.30
8.0.250.0050.00217.01
8.0.240.0030.00516.88
8.0.230.0030.00317.00
8.0.220.0070.00016.97
8.0.210.0050.00316.86
8.0.200.0000.00816.89
8.0.190.0070.00017.01
8.0.180.0000.00816.94
8.0.170.0030.00617.01
8.0.160.0040.00316.95
8.0.150.0030.00316.92
8.0.140.0000.00817.00
8.0.130.0000.00613.38
8.0.120.0080.00016.93
8.0.110.0040.00416.86
8.0.100.0040.00416.78
8.0.90.0000.00716.75
8.0.80.0210.00316.88
8.0.70.0050.00516.85
8.0.60.0040.00416.86
8.0.50.0070.00017.02
8.0.30.0090.00917.11
8.0.20.0120.00717.40
8.0.10.0070.00017.10
8.0.00.0120.00616.58
7.4.330.0050.00015.08
7.4.320.0000.00716.51
7.4.300.0000.00616.43
7.4.290.0030.00516.57
7.4.280.0060.00316.43
7.4.270.0000.00716.48
7.4.260.0030.00616.50
7.4.250.0030.00316.59
7.4.240.0040.00416.52
7.4.230.0030.00316.59
7.4.220.0000.01816.59
7.4.210.0070.00916.50
7.4.200.0040.00416.38
7.4.160.0070.01016.41
7.4.150.0130.00717.40
7.4.140.0050.01317.86
7.4.130.0110.00916.57
7.4.120.0150.00716.68
7.4.110.0110.00816.64
7.4.100.0110.00616.56
7.4.90.0120.00616.52
7.4.80.0130.00619.39
7.4.70.0140.00316.58
7.4.60.0110.00716.56
7.4.50.0030.00916.54
7.4.40.0120.00416.43
7.4.30.0100.00716.59
7.4.00.0060.01115.07
7.3.330.0040.00413.34
7.3.320.0030.00313.26
7.3.310.0040.00416.28
7.3.300.0040.00416.24
7.3.290.0000.00716.13
7.3.280.0090.00716.27
7.3.270.0100.00717.40
7.3.260.0120.00816.53
7.3.250.0090.00816.45
7.3.240.0080.01016.46
7.3.230.0080.00916.43
7.3.210.0050.01116.45
7.3.200.0040.01216.58
7.3.190.0000.01516.41
7.3.180.0060.01216.55
7.3.170.0120.00916.51
7.3.160.0120.00616.23
7.3.120.0100.00714.78
7.3.110.0070.01014.89
7.3.100.0060.00614.88
7.3.90.0120.00314.48
7.3.80.0080.00414.83
7.3.70.0100.00414.90
7.3.60.0080.00014.48
7.3.50.0080.00314.86
7.3.40.0140.00414.47
7.3.30.0100.00714.79
7.3.20.0060.01016.62
7.3.10.0030.00916.51
7.3.00.0080.00616.69
7.2.330.0090.00916.78
7.2.320.0070.01116.52
7.2.310.0060.01216.66
7.2.300.0090.00916.52
7.2.290.0140.00316.46
7.2.250.0030.01714.92
7.2.240.0090.00915.24
7.2.230.0060.00914.96
7.2.220.0060.00315.02
7.2.210.0040.01115.02
7.2.200.0030.01014.93
7.2.190.0040.00715.15
7.2.180.0070.00715.03
7.2.170.0030.01315.20
7.2.130.0040.00716.65
7.2.120.0040.00816.85
7.2.110.0040.00717.10
7.2.100.0070.00716.93
7.2.90.0000.01417.04
7.2.80.0050.00716.60
7.2.70.0060.00617.07
7.2.60.0050.00816.94
7.2.50.0000.01316.95
7.2.40.0070.01017.04
7.2.30.0120.00316.83
7.2.20.0040.01216.77
7.2.10.0060.00917.03
7.2.00.0060.00618.30
7.1.330.0080.00615.78
7.1.320.0060.00315.71
7.1.310.0030.01015.78
7.1.300.0070.00715.54
7.1.290.0030.01015.50
7.1.280.0100.00315.75
7.1.270.0000.01115.70
7.1.260.0000.00816.00
7.1.250.0110.00315.75
7.1.200.0100.00315.54
7.1.100.0030.00917.99
7.1.70.0040.00417.11
7.1.60.0140.00716.80
7.1.50.0150.01116.58
7.1.00.0030.07022.40
7.0.200.0320.00614.93
7.0.100.0130.05320.03
7.0.90.0170.07319.93
7.0.80.0170.07020.01
7.0.70.0170.07319.98
7.0.60.0130.05320.03
7.0.50.0170.08320.31
7.0.40.0200.06020.39
7.0.30.0170.07320.36
7.0.20.0100.06320.36
7.0.10.0230.06720.37
7.0.00.0170.06720.39
5.6.250.0200.05320.64
5.6.240.0100.06320.71
5.6.230.0100.06020.67
5.6.220.0070.06320.68
5.6.210.0070.06020.59
5.6.200.0200.07721.16
5.6.190.0170.07721.12
5.6.180.0200.05021.10
5.6.170.0130.07321.10
5.6.160.0100.08321.09
5.6.150.0070.06721.21
5.6.140.0130.05021.11
5.6.130.0130.05321.03
5.6.120.0130.05321.21
5.6.110.0130.05321.10
5.6.100.0170.05021.08
5.6.90.0130.08021.10
5.6.80.0130.06020.42
5.6.70.0070.06020.41
5.6.60.0130.07320.41
5.6.50.0100.05320.45
5.6.40.0070.06020.45
5.6.30.0130.05020.47
5.6.20.0130.05320.45
5.6.10.0100.05320.49
5.6.00.0070.05720.46

preferences:
65.08 ms | 401 KiB | 5 Q