3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cache = array('Blah\Blah\Blah', 'src/Blah/Blah/Blag.php'); $startList = microtime(true); for ($i = 0; $i < 1000; $i++) { list($class, $file) = $cache; } $endList = microtime(true); $startEach = microtime(true); for ($i = 0; $i < 1000; $i++) { $class = $cache[0]; $file = $cache[1]; } $endEach = microtime(true); $startAr = microtime(true); for ($i = 0; $i < 1000; $i++) { $class = reset($cache); $file = end($cache); } $endAr = microtime(true); $listDiff = $endList - $startList; $eachDiff = $endEach - $startEach; $arDiff = $endAr - $startAr; echo 'List diff: ' . $listDiff . PHP_EOL; echo 'Each diff: ' . $eachDiff . PHP_EOL; echo 'Ar diff: ' . $arDiff . PHP_EOL;

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)
7.3.10.0030.01016.72
7.3.00.0090.00616.85
7.2.130.0060.00316.72
7.2.120.0070.01017.10
7.2.110.0040.01217.03
7.2.100.0000.01317.16
7.2.90.0100.00717.01
7.2.80.0030.00616.86
7.2.70.0070.00716.62
7.2.60.0000.01417.08
7.2.50.0100.00617.01
7.2.40.0030.01217.07
7.2.30.0080.00616.98
7.2.20.0090.00616.79
7.2.10.0030.01216.81
7.2.00.0050.01218.08
7.1.250.0000.01315.94
7.1.70.0040.00417.10
7.1.60.0060.01519.40
7.1.50.0110.01116.84
7.1.00.0030.07722.48
7.0.200.0000.01016.76
7.0.140.0000.07321.98
7.0.60.0130.07319.89
7.0.50.0030.08317.82
7.0.40.0070.04320.06
7.0.30.0230.04720.09
7.0.20.0270.08320.18
7.0.10.0000.07320.02
7.0.00.0100.08020.08
5.6.210.0070.08020.65
5.6.200.0000.04718.12
5.6.190.0070.06020.41
5.6.180.0200.08720.60
5.6.170.0200.07720.38
5.6.160.0000.04320.59
5.6.150.0070.03718.13
5.6.140.0100.04318.15
5.6.130.0070.05018.20
5.6.120.0100.08321.03
5.6.110.0070.04320.98
5.6.100.0130.07720.89
5.6.90.0070.04321.08
5.6.80.0070.04020.41
5.6.70.3370.03320.43
5.5.350.0370.06720.36
5.5.340.0070.07017.88
5.5.330.0030.08020.15
5.5.320.0370.06720.20
5.5.310.0300.08020.30
5.5.300.0130.08017.97
5.5.290.0130.07317.88
5.5.280.0070.08320.86
5.5.270.0170.07320.88
5.5.260.0070.08720.89
5.5.250.0100.08020.59
5.5.240.0270.07020.27
5.4.450.0800.06019.57
5.4.440.0570.06019.50
5.4.430.0800.05719.16
5.4.420.0730.05319.50
5.4.410.0770.06019.21
5.4.400.0700.05318.92
5.4.390.0930.05319.21
5.4.380.0170.05318.75
5.4.370.0100.04018.77
5.4.360.0030.04018.46
5.4.350.0110.04511.98
5.4.340.0140.04111.98
5.4.320.0090.03312.46
5.4.310.0050.04012.46
5.4.300.0090.03412.46
5.4.290.0050.03912.46
5.4.280.0010.04112.36
5.4.270.0050.03812.36
5.4.260.0070.04312.36
5.4.250.0100.07512.36
5.4.240.0070.03612.36
5.4.230.0120.05212.35
5.4.220.0060.03712.35
5.4.210.0090.03412.35
5.4.200.0100.04712.35
5.4.190.0090.04812.35
5.4.180.0070.03612.34
5.4.170.0070.03612.36
5.4.160.0060.03712.36
5.4.150.0080.03812.35
5.4.140.0070.03712.04
5.4.130.0080.03412.02
5.4.120.0050.05111.98
5.4.110.0060.04711.98
5.4.100.0040.03711.98
5.4.90.0050.03911.98
5.4.80.0080.03611.98
5.4.70.0060.03711.97
5.4.60.0080.03411.97
5.4.50.0070.03611.98
5.4.40.0040.03711.96
5.4.30.0060.03711.96
5.4.20.0050.03711.96
5.4.10.0080.03411.96
5.4.00.0060.03711.45
5.3.290.0040.04212.80
5.3.280.0070.03812.71
5.3.270.0070.03912.72
5.3.260.0070.03912.72
5.3.250.0070.03612.71
5.3.240.0080.03612.72
5.3.230.0100.03812.71
5.3.220.0070.04712.68
5.3.210.0070.04912.68
5.3.200.0080.04312.68
5.3.190.0030.04112.68
5.3.180.0120.04712.67
5.3.170.0120.04812.66
5.3.160.0090.04612.67
5.3.150.0070.05612.67
5.3.140.0090.04512.66
5.3.130.0110.03612.66
5.3.120.0050.04112.66
5.3.110.0060.04112.66
5.3.100.0040.03912.12
5.3.90.0040.03912.08
5.3.80.0050.03712.08
5.3.70.0050.03912.08
5.3.60.0060.03912.06
5.3.50.0080.03512.00
5.3.40.0080.03912.00
5.3.30.0060.03611.96
5.3.20.0060.03511.74
5.3.10.0060.03711.71
5.3.00.0060.03811.69
5.2.170.0050.0319.20
5.2.160.0070.0289.20
5.2.150.0030.0369.20
5.2.140.0090.0289.20
5.2.130.0070.0349.15
5.2.120.0090.0309.16
5.2.110.0050.0309.16
5.2.100.0030.0319.16
5.2.90.0060.0299.16
5.2.80.0010.0349.15
5.2.70.0040.0329.16
5.2.60.0080.0409.11
5.2.50.0050.0429.07
5.2.40.0060.0409.05
5.2.30.0080.0379.03
5.2.20.0030.0319.02
5.2.10.0060.0308.97
5.2.00.0070.0438.83
5.1.60.0050.0338.11
5.1.50.0110.0288.10
5.1.40.0060.0268.09
5.1.30.0100.0218.44
5.1.20.0040.0278.46
5.1.10.0040.0278.18
5.1.00.0030.0348.18
5.0.50.0040.0276.67
5.0.40.0040.0226.53
5.0.30.0030.0346.34
5.0.20.0010.0266.31
5.0.10.0040.0216.29
5.0.00.0070.0396.28
4.4.90.0030.0244.78
4.4.80.0050.0224.76
4.4.70.0040.0234.76
4.4.60.0060.0214.76
4.4.50.0080.0194.77
4.4.40.0030.0364.71
4.4.30.0050.0224.76
4.4.20.0050.0234.84
4.4.10.0060.0184.85
4.4.00.0040.0254.76
4.3.110.0010.0194.67
4.3.100.0040.0154.66
4.3.90.0050.0134.64
4.3.80.0030.0254.59
4.3.70.0030.0154.63
4.3.60.0030.0164.63
4.3.50.0020.0184.62
4.3.40.0030.0254.55
4.3.30.0000.0193.35
4.3.20.0010.0203.33
4.3.10.0010.0173.29
4.3.00.0100.0307.14

preferences:
16.75 ms | 401 KiB | 5 Q