3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array(array("a"=>"red","b"=>"green","c"=>"blue")); echo array_shift($a)."<br>"; print_r ($a);

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.70.0030.01216.63
8.3.60.0120.00318.43
8.3.50.0070.01017.95
8.3.40.0090.00918.75
8.3.30.0060.01018.73
8.3.20.0020.00519.09
8.3.10.0060.00323.52
8.3.00.0040.00420.64
8.2.180.0110.00716.38
8.2.170.0160.00322.96
8.2.160.0140.00022.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.82
8.2.120.0040.00426.35
8.2.110.0060.00320.89
8.2.100.0090.00317.84
8.2.90.0040.00417.75
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0040.00418.22
8.2.50.0110.00018.10
8.2.40.0000.00719.48
8.2.30.0000.00719.18
8.2.20.0000.00818.05
8.2.10.0070.00017.87
8.2.00.0000.00817.58
8.1.280.0090.00625.92
8.1.270.0080.00018.83
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00721.22
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0030.00518.50
8.1.160.0080.00018.88
8.1.150.0000.00818.79
8.1.140.0000.00722.03
8.1.130.0040.00422.00
8.1.120.0030.00517.43
8.1.110.0000.00717.34
8.1.100.0000.00717.47
8.1.90.0000.00717.35
8.1.80.0000.01017.33
8.1.70.0080.00017.40
8.1.60.0000.00917.43
8.1.50.0060.00317.41
8.1.40.0000.00717.45
8.1.30.0080.00017.54
8.1.20.0060.00317.66
8.1.10.0030.00617.39
8.1.00.0000.00817.44
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.43
8.0.270.0030.00317.25
8.0.260.0030.00318.35
8.0.250.0070.00016.82
8.0.240.0030.00316.98
8.0.230.0070.00016.90
8.0.220.0030.00316.94
8.0.210.0030.00316.98
8.0.200.0030.00316.98
8.0.190.0050.00316.94
8.0.180.0080.00016.93
8.0.170.0040.00416.89
8.0.160.0040.00416.85
8.0.150.0000.00716.82
8.0.140.0040.00416.88
8.0.130.0050.00013.36
8.0.120.0000.00816.96
8.0.110.0000.00816.96
8.0.100.0070.00016.93
8.0.90.0040.00417.01
8.0.80.0020.01316.95
8.0.70.0050.00317.00
8.0.60.0000.00716.76
8.0.50.0030.00316.78
8.0.30.0140.00617.03
8.0.20.0060.01317.40
8.0.10.0000.00716.89
8.0.00.0110.00716.91
7.4.330.0050.00015.55
7.4.320.0000.00616.36
7.4.300.0030.00316.41
7.4.290.0070.00016.52
7.4.280.0040.00316.33
7.4.270.0070.00316.51
7.4.260.0000.00616.52
7.4.250.0060.00216.39
7.4.240.0000.00716.36
7.4.230.0030.00316.25
7.4.220.0040.00416.34
7.4.210.0060.00916.49
7.4.200.0070.00016.60
7.4.160.0050.01116.43
7.4.140.0090.00917.86
7.4.130.0060.01216.50
7.4.120.0090.00816.48
7.4.110.0160.00616.56
7.4.100.0090.01416.62
7.4.90.0100.00716.47
7.4.80.0100.01019.39
7.4.70.0000.01616.50
7.4.60.0130.00316.51
7.4.50.0030.01316.66
7.4.40.0130.01016.49
7.4.00.0000.01415.05
7.3.330.0000.00513.20
7.3.320.0050.00013.05
7.3.310.0000.00816.19
7.3.300.0000.00716.11
7.3.290.0000.00616.16
7.3.280.0070.01116.21
7.3.260.0090.00816.34
7.3.240.0060.01316.29
7.3.230.0180.00716.16
7.3.210.0070.01016.41
7.3.200.0080.00816.42
7.3.190.0070.01016.49
7.3.180.0090.01516.36
7.3.170.0090.01216.31
7.3.160.0030.01416.43
7.2.330.0070.01116.19
7.2.320.0090.01316.20
7.2.310.0130.00316.54
7.2.300.0130.00316.27
7.2.290.0100.01316.62
7.2.110.0100.01414.59
7.2.100.0140.00914.66
7.2.90.0300.00314.45
7.2.80.0140.00714.56
7.2.70.0170.01014.60
7.2.60.0290.00714.98
7.2.50.0160.00314.93
7.2.40.0160.00614.79
7.2.30.0140.01014.65
7.2.20.0210.00014.48
7.2.10.0160.00914.52
7.2.00.0240.00014.44
7.1.230.0180.01213.81
7.1.220.0120.00913.82
7.1.210.0130.00813.58
7.1.200.0130.00613.85
7.1.190.0190.00713.73
7.1.180.0120.00613.79
7.1.170.0120.00613.90
7.1.160.0110.00713.51
7.1.150.0170.00413.49
7.1.140.0130.01013.41
7.1.130.0170.00713.37
7.1.120.0180.00313.60
7.1.110.0160.00313.72
7.1.100.0130.00713.50
7.1.90.0170.00713.08
7.1.80.0180.00313.19
7.1.70.1130.00713.61
7.1.60.0360.00631.17
7.1.50.0310.00731.41
7.1.40.0320.00631.34
7.1.30.0420.01031.27
7.1.20.0370.00331.44
7.1.10.0130.00613.39
7.1.00.0150.00313.13
5.6.380.0040.00814.39

preferences:
64.24 ms | 401 KiB | 5 Q