3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ '0' => 'foo', '0101' => 'foo', '0xA0' => 'foo', '0A' => 'foo', '10' => 'foo', '866' => 'foo', 'foo' => 'foo', ]; var_export($input); echo PHP_EOL; var_dump(unserialize(serialize($input)));

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.0040.01118.18
8.3.50.0120.00616.46
8.3.40.0030.01718.79
8.3.30.0110.00418.56
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.180.0070.01125.92
8.2.170.0150.00018.96
8.2.160.0100.00722.96
8.2.150.0030.00725.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0060.00320.34
8.2.100.0090.00317.78
8.2.90.0050.00317.84
8.2.80.0000.00920.87
8.2.70.0060.00317.50
8.2.60.0000.00817.63
8.2.50.0040.00417.63
8.2.40.0030.00519.35
8.2.30.0000.00717.89
8.2.20.0030.00517.86
8.2.10.0040.00419.05
8.2.00.0050.00319.16
8.1.280.0000.02025.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0040.00420.64
8.1.230.0040.00721.02
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0050.00317.22
8.1.190.0060.00317.11
8.1.180.0000.00818.10
8.1.170.0000.00819.01
8.1.160.0000.00818.82
8.1.150.0040.00418.80
8.1.140.0040.00418.72
8.1.130.0000.00720.07
8.1.120.0000.00717.32
8.1.110.0030.00517.26
8.1.100.0030.00517.23
8.1.90.0040.00417.24
8.1.80.0030.00617.34
8.1.70.0070.00017.26
8.1.60.0030.00617.52
8.1.50.0000.00817.47
8.1.40.0050.00317.36
8.1.30.0040.00417.49
8.1.20.0030.00617.62
8.1.10.0000.00717.50
8.1.00.0000.00917.50
8.0.300.0000.00720.04
8.0.290.0040.00416.75
8.0.280.0050.00218.49
8.0.270.0000.00716.75
8.0.260.0030.00318.45
8.0.250.0040.00416.89
8.0.240.0030.00316.79
8.0.230.0000.00816.93
8.0.220.0000.00716.87
8.0.210.0030.00316.76
8.0.200.0080.00016.91
8.0.190.0040.00416.83
8.0.180.0040.00416.88
8.0.170.0030.00516.78
8.0.160.0000.00716.95
8.0.150.0040.00416.74
8.0.140.0030.00716.85
8.0.130.0000.00613.32
8.0.120.0040.00416.74
8.0.110.0000.00716.91
8.0.100.0040.00416.83
8.0.90.0030.00316.76
8.0.80.0070.01216.79
8.0.70.0040.00416.83
8.0.60.0040.00416.94
8.0.50.0060.00316.81
8.0.30.0170.01816.87
8.0.20.0180.01216.96
8.0.10.0260.00316.88
8.0.00.0210.01317.07
7.4.330.0040.00015.55
7.4.320.0060.00016.36
7.4.300.0000.00616.42
7.4.290.0080.00016.45
7.4.280.0040.00416.46
7.4.270.0000.00716.43
7.4.260.0000.00513.14
7.4.250.0040.00416.45
7.4.240.0040.00416.39
7.4.230.0000.00716.60
7.4.220.0020.00516.40
7.4.210.0000.01416.37
7.4.200.0000.00716.27
7.4.160.0240.01016.41
7.4.150.0230.00616.38
7.4.140.0130.01616.50
7.4.130.0250.00616.31
7.4.120.0160.01516.32
7.4.110.0250.00816.30
7.4.100.0240.00716.32
7.4.90.0240.00916.40
7.4.80.0240.00816.38
7.4.70.0240.01316.35
7.4.60.0190.01316.27
7.4.50.0220.01116.39
7.4.40.0280.00816.49
7.4.30.0260.01016.41
7.4.20.0220.00916.20
7.4.10.0240.00416.30
7.4.00.0310.00416.27
7.3.330.0070.00016.28
7.3.320.0030.00313.03
7.3.310.0020.00516.08
7.3.300.0040.00416.14
7.3.290.0080.00916.15
7.3.280.0100.01316.07
7.3.270.0200.01216.05
7.3.260.0260.00816.20
7.3.250.0140.02116.12
7.3.240.0250.00916.12
7.3.230.0230.01316.13
7.3.220.0220.01116.10
7.3.210.0170.01316.07
7.3.200.0190.01416.07
7.3.190.0220.00716.07
7.3.180.0260.00816.11
7.3.170.0240.01016.01
7.3.160.0300.00716.10
7.3.150.0240.01116.03
7.3.140.0140.01616.02
7.3.130.0310.00316.02
7.3.120.0220.01516.10
7.3.110.0240.00916.02
7.3.100.0290.00416.12
7.3.90.0220.01316.33
7.3.80.0450.00416.14
7.3.70.0230.01116.27
7.3.60.0220.01016.37
7.3.50.0290.00616.23
7.3.40.0250.00816.38
7.3.30.0170.01716.33
7.3.20.0140.01116.27
7.3.10.0160.01616.21
7.3.00.0330.01516.15

preferences:
59.76 ms | 400 KiB | 5 Q