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()); }, 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.0070.01416.63
8.3.50.0160.00622.00
8.3.40.0040.01118.96
8.3.30.0140.00018.85
8.3.20.0160.00020.36
8.3.10.0050.00323.71
8.3.00.0040.00422.41
8.2.180.0150.00317.00
8.2.170.0140.00322.96
8.2.160.0070.00719.32
8.2.150.0070.00324.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0050.00517.36
8.2.110.0060.00320.94
8.2.100.0090.00317.84
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0050.00317.50
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0070.00022.27
8.2.30.0000.00719.29
8.2.20.0040.00417.66
8.2.10.0040.00418.18
8.2.00.0000.00817.73
8.1.280.0090.00625.92
8.1.270.0120.00323.89
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00722.14
8.1.230.0070.00417.58
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0050.00517.35
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0000.00818.57
8.1.160.0030.00422.16
8.1.150.0050.00318.83
8.1.140.0000.00719.64
8.1.130.0040.00417.75
8.1.120.0000.00717.54
8.1.110.0000.00717.37
8.1.100.0000.00817.37
8.1.90.0070.00017.40
8.1.80.0000.00717.53
8.1.70.0080.00017.37
8.1.60.0030.00517.55
8.1.50.0040.00417.42
8.1.40.0000.00817.51
8.1.30.0040.00417.73
8.1.20.0030.00517.57
8.1.10.0040.00417.59
8.1.00.0040.00417.45
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0030.00317.26
8.0.260.0030.00317.40
8.0.250.0040.00417.03
8.0.240.0000.00817.00
8.0.230.0030.00317.04
8.0.220.0000.00716.98
8.0.210.0000.00716.98
8.0.200.0070.00016.96
8.0.190.0070.00016.98
8.0.180.0000.00716.87
8.0.170.0050.00217.04
8.0.160.0030.00317.00
8.0.150.0000.00716.80
8.0.140.0050.00216.95
8.0.130.0000.00613.35
8.0.120.0000.00816.89
8.0.110.0030.00616.80
8.0.100.0000.00816.81
8.0.90.0060.00316.81
8.0.80.0030.01216.89
8.0.70.0040.00416.84
8.0.60.0040.00416.96
8.0.50.0040.00416.82
8.0.30.0100.00717.05
8.0.20.0130.00817.40
8.0.10.0070.00016.89
8.0.00.0100.00716.93
7.4.330.0020.00215.14
7.4.320.0000.00716.40
7.4.300.0030.00316.59
7.4.290.0000.00716.48
7.4.280.0000.00716.44
7.4.270.0030.00316.40
7.4.260.0070.00016.62
7.4.250.0070.00016.49
7.4.240.0040.00416.66
7.4.230.0030.00316.62
7.4.220.0130.00716.61
7.4.210.0090.00516.60
7.4.200.0030.00316.50
7.4.160.0060.01116.57
7.4.150.0110.00717.40
7.4.140.0060.01117.86
7.4.130.0040.01316.51
7.4.120.0090.00816.44
7.4.110.0070.01116.43
7.4.100.0110.01116.73
7.4.90.0090.00916.66
7.4.80.0170.00319.39
7.4.70.0120.00416.48
7.4.60.0120.00616.49
7.4.50.0040.00916.29
7.4.40.0110.00616.46
7.4.30.0100.01316.64
7.4.00.0030.01314.90
7.3.330.0060.00013.11
7.3.320.0030.00313.18
7.3.310.0030.00316.24
7.3.300.0060.00016.33
7.3.290.0030.00316.25
7.3.280.0090.00916.29
7.3.270.0070.01017.40
7.3.260.0090.00916.53
7.3.250.0100.00816.39
7.3.240.0050.01116.34
7.3.230.0030.01416.57
7.3.210.0090.00916.33
7.3.200.0080.00816.31
7.3.190.0060.01116.46
7.3.180.0090.00916.48
7.3.170.0110.00716.45
7.3.160.0120.00916.25
7.3.10.0050.00916.69
7.3.00.0020.01216.55
7.2.330.0150.00316.53
7.2.320.0100.00716.90
7.2.310.0060.01316.88
7.2.300.0070.01116.59
7.2.290.0070.01016.62
7.2.130.0050.01116.86
7.2.120.0060.01016.98
7.2.110.0060.00316.89
7.2.100.0050.00716.88
7.2.90.0080.00816.79
7.2.80.0050.01016.80
7.2.70.0040.01216.88
7.2.60.0070.00516.90
7.2.50.0090.00316.93
7.2.40.0030.00916.81
7.2.30.0030.00616.93
7.2.20.0050.00816.97
7.2.10.0000.01316.98
7.2.00.0050.00917.82
7.1.250.0030.00815.74
7.1.200.0030.00715.72
7.1.100.0100.00618.22
7.1.70.0000.00817.15
7.1.60.0000.01317.13
7.1.50.0090.00916.79
7.1.00.0070.07322.52
7.0.200.0100.00315.02
7.0.100.6100.08019.96
7.0.90.0070.06020.12
7.0.80.0030.07019.93
7.0.70.0030.06319.93
7.0.60.0130.05719.95
7.0.50.0130.05320.29
7.0.40.0130.05720.29
7.0.30.0100.07720.37
7.0.20.0230.04720.46
7.0.10.0070.06320.35
7.0.00.0200.05020.22
5.6.250.0100.06020.64
5.6.240.0100.06020.69
5.6.230.0030.06720.67
5.6.220.0100.05720.51
5.6.210.0070.06020.70
5.6.200.0230.07021.09
5.6.190.0200.05021.11
5.6.180.0070.06321.18
5.6.170.0200.07721.17
5.6.160.0130.05721.13
5.6.150.0230.04721.05
5.6.140.0130.05721.20
5.6.130.0170.05321.14
5.6.120.0170.05021.06
5.6.110.0200.05021.07
5.6.100.0030.06321.12
5.6.90.0130.05721.00
5.6.80.0100.05320.57
5.6.70.0100.05320.56
5.6.60.0100.06020.54
5.6.50.0130.05320.47
5.6.40.0070.05720.47
5.6.30.0100.05320.47
5.6.20.0100.05720.45
5.6.10.0070.05720.38
5.6.00.0070.05720.41

preferences:
32.72 ms | 401 KiB | 5 Q