3v4l.org

run code in 300+ PHP versions simultaneously
<?php $queue = array(10, "apple", "orange", "banana", "raspberry"); print_r($queue); unset($queue["apple"]); print_r($queue); foreach ($queue as $key => $g) { print "key: ".$key." --> g: ".$g."\n"; } $foo = "derp%"; print("foof $foo"); foreach ($queue as $g) { print "g: ".$g."\n"; } php?>

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.40.0110.00418.92
8.3.30.0100.00718.99
8.3.20.0070.00020.34
8.3.10.0040.00421.77
8.3.00.0040.00419.69
8.2.170.0100.00722.96
8.2.160.0130.00320.57
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00420.99
8.2.110.0060.01621.07
8.2.100.0060.00617.91
8.2.90.0090.00019.21
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0050.00319.47
8.2.50.0070.00018.16
8.2.40.0040.00420.42
8.2.30.0000.00819.42
8.2.20.0040.00417.80
8.2.10.0040.00418.00
8.2.00.0000.00817.82
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0130.00628.09
8.1.240.0060.00322.59
8.1.230.0110.00017.70
8.1.220.0080.00017.78
8.1.210.0000.00818.77
8.1.200.0000.01017.48
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0040.00418.85
8.1.150.0070.00420.19
8.1.140.0030.00517.39
8.1.130.0000.00717.83
8.1.120.0000.00717.41
8.1.110.0020.00517.47
8.1.100.0050.00217.39
8.1.90.0070.00017.41
8.1.80.0000.00817.36
8.1.70.0030.00317.34
8.1.60.0040.00417.47
8.1.50.0000.00917.58
8.1.40.0060.00317.42
8.1.30.0030.00517.48
8.1.20.0000.00817.64
8.1.10.0000.00817.58
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0020.00516.88
8.0.280.0070.00018.38
8.0.270.0000.00717.25
8.0.260.0030.00317.26
8.0.250.0080.00016.98
8.0.240.0050.00317.05
8.0.230.0030.00617.02
8.0.220.0000.00716.94
8.0.210.0040.00416.96
8.0.200.0000.00716.99
8.0.190.0000.00816.98
8.0.180.0000.00717.03
8.0.170.0040.00416.99
8.0.160.0050.00316.78
8.0.150.0040.00416.86
8.0.140.0050.00316.91
8.0.130.0030.00413.36
8.0.120.0040.00416.93
8.0.110.0050.00316.94
8.0.100.0000.00717.00
8.0.90.0000.00816.99
8.0.80.0040.01116.88
8.0.70.0040.00416.83
8.0.60.0000.00817.03
8.0.50.0000.00716.77
8.0.30.0050.01417.04
8.0.20.0080.01017.40
8.0.10.0070.00016.88
8.0.00.0170.00316.80
7.4.330.0020.00215.02
7.4.320.0030.00316.56
7.4.300.0030.00316.42
7.4.290.0030.00316.52
7.4.280.0000.00716.35
7.4.270.0000.00816.50
7.4.260.0000.00716.55
7.4.250.0030.00616.46
7.4.240.0050.00216.49
7.4.230.0000.00716.40
7.4.220.0110.00616.54
7.4.210.0030.01716.54
7.4.200.0040.00216.30
7.4.160.0090.00916.41
7.4.150.0060.01217.40
7.4.140.0120.00617.86
7.4.130.0110.00516.49
7.4.120.0110.00816.69
7.4.110.0160.00016.48
7.4.100.0140.00416.64
7.4.90.0060.01216.59
7.4.80.0170.00619.39
7.4.70.0030.01316.41
7.4.60.0100.00716.45
7.4.50.0030.00616.66
7.4.40.0060.01216.43
7.4.30.0070.01016.73
7.4.00.0000.01414.88
7.3.330.0000.00713.19
7.3.320.0000.00513.18
7.3.310.0000.00716.48
7.3.300.0070.00016.37
7.3.290.0100.01016.44
7.3.280.0100.01016.40
7.3.270.0060.01217.40
7.3.260.0130.01016.34
7.3.250.0150.00416.61
7.3.240.0080.00816.27
7.3.230.0110.00616.39
7.3.210.0140.00316.43
7.3.200.0120.01219.39
7.3.190.0030.01316.43
7.3.180.0110.00816.33
7.3.170.0130.00316.47
7.3.160.0030.01316.21
7.3.120.0060.01214.88
7.2.330.0110.00616.86
7.2.320.0120.00616.72
7.2.310.0080.00816.39
7.2.300.0030.01316.35
7.2.290.0130.00316.68
7.2.120.0030.01116.63
7.2.110.0000.00916.48
7.2.100.0140.00316.60
7.2.90.0080.00816.68
7.2.80.0080.00816.74
7.2.70.0110.00616.86
7.2.60.0110.00517.03
7.2.50.0130.00917.00
7.2.40.0120.00016.97
7.2.30.0170.00416.63
7.2.20.0110.00816.89
7.2.10.0120.00416.61
7.2.00.0030.01118.07
7.1.240.0070.00715.96
7.1.230.0110.00415.49
7.1.220.0110.00615.92
7.1.210.0110.00615.88
7.1.200.0040.00815.72
7.1.190.0060.00915.81
7.1.180.0050.01015.92
7.1.170.0080.00415.77
7.1.160.0140.00315.75
7.1.150.0100.00315.86
7.1.140.0080.00815.76
7.1.130.0120.00615.66
7.1.120.0090.00515.88
7.1.110.0100.00615.90
7.1.100.0100.00616.81
7.1.90.0100.00715.55
7.1.80.0090.00515.72
7.1.70.0050.00616.44
7.1.60.0100.01017.50
7.1.50.0140.00716.46
7.1.40.0060.00315.86
7.1.30.0040.00915.93
7.1.20.0110.00415.84
7.1.10.0090.00615.62
7.1.00.0020.04419.08
7.0.320.0110.00615.22
7.0.310.0000.01315.38
7.0.300.0000.01315.44
7.0.290.0160.00015.41
7.0.280.0100.00415.41
7.0.270.0080.00814.98
7.0.260.0110.00515.42
7.0.250.0000.01215.10
7.0.240.0170.00015.44
7.0.230.0150.00315.53
7.0.220.0130.00315.23
7.0.210.0150.00315.43
7.0.200.0070.00715.97
7.0.190.0090.00515.40
7.0.180.0060.00615.57
7.0.170.0110.00415.10
7.0.160.0100.00315.50
7.0.150.0150.00015.43
7.0.140.0070.04118.73
7.0.130.0070.00715.52
7.0.120.0030.00915.48
7.0.110.0060.00915.39
7.0.100.0030.00315.40
7.0.90.0000.01115.10
7.0.80.0120.00315.55
7.0.70.0000.01315.40
7.0.60.0080.03317.71
7.0.50.0060.04016.74
7.0.40.0080.02316.78
7.0.30.0150.05016.95
7.0.20.0150.04216.91
7.0.10.0050.04016.94
7.0.00.0060.04516.69
5.6.380.0090.00914.25
5.6.370.0080.00514.23
5.6.360.0000.01614.57
5.6.350.0110.00414.13
5.6.340.0090.00914.29
5.6.330.0120.00014.00
5.6.320.0050.00814.57
5.6.310.0070.00714.35
5.6.300.0110.00014.44
5.6.290.0030.00814.62
5.6.280.0000.04317.66
5.6.270.0070.00714.66
5.6.260.0110.00414.32
5.6.250.0090.00614.23
5.6.240.0110.00314.27
5.6.230.0000.00814.33
5.6.220.0040.00714.16
5.6.210.0120.04017.39
5.6.200.0070.04316.20
5.6.190.0070.04717.43
5.6.180.2140.02317.42
5.6.170.0170.02017.30
5.6.160.0070.04317.38
5.6.150.0070.02216.21
5.6.140.0060.03616.12
5.6.130.0070.04016.12
5.6.120.0050.02917.62
5.6.110.0070.04417.74
5.6.100.0010.02617.81
5.6.90.0100.03117.58
5.6.80.0050.03517.42
5.6.70.1770.02217.22
5.6.60.0070.00714.27
5.6.50.0060.00313.99
5.6.40.0030.00314.45
5.6.30.0000.01314.13
5.6.20.0060.00914.20
5.6.10.0050.00514.13
5.6.00.0040.01114.50
5.5.380.0040.00811.39
5.5.370.0090.00311.23
5.5.360.0060.00611.11
5.5.350.1920.02215.76
5.5.340.0090.03314.64
5.5.330.0050.02515.82
5.5.320.2060.02515.75
5.5.310.0070.02315.80
5.5.300.0080.02214.61
5.5.290.0030.02914.52
5.5.280.0060.01916.06
5.5.270.0070.03516.07
5.5.260.0100.04016.02
5.5.250.0030.04515.83
5.5.240.0130.02815.63
5.5.230.0090.00011.16
5.5.220.0090.00311.19
5.5.210.0030.00911.23
5.5.200.0030.00311.23
5.5.190.0080.00011.18
5.5.180.0000.01211.25
5.5.170.0040.01214.05
5.5.160.0000.01111.24
5.5.150.0000.01111.14
5.5.140.0060.00611.07
5.5.130.0060.00311.20
5.5.120.0000.00911.24
5.5.110.0060.00611.25
5.5.100.0000.00611.07
5.5.90.0030.00611.07
5.5.80.0000.01111.07
5.5.70.0070.00311.07
5.5.60.0060.00611.25
5.5.50.0040.00811.07
5.5.40.0040.00411.28
5.5.30.0040.00411.07
5.5.20.0060.00311.07
5.5.10.0060.00311.07
5.5.00.0000.01211.19
5.4.450.0150.02815.12
5.4.440.0260.01815.28
5.4.430.0100.02815.17
5.4.420.0270.02215.26
5.4.410.0280.02515.21
5.4.400.0190.02315.20
5.4.390.0250.02715.12
5.4.380.0330.03214.91
5.4.370.0490.03414.96
5.4.360.0390.02814.95
5.4.350.0370.03414.92
5.4.340.0400.03514.98
5.4.330.0060.00611.07
5.4.320.0070.03011.78
5.4.310.0050.02211.83
5.4.300.0030.02411.78
5.4.290.0040.02411.78
5.4.280.0050.02411.73
5.4.270.0080.01811.72
5.4.260.0050.02111.73
5.4.250.0070.02011.73
5.4.240.0070.02011.80
5.4.230.0070.02011.72
5.4.220.0040.02411.72
5.4.210.0020.02111.72
5.4.200.0040.02211.72
5.4.190.0060.02011.72
5.4.180.0050.02511.72
5.4.170.0060.01911.85
5.4.160.0060.02111.72
5.4.150.0040.02311.72
5.4.140.0020.02211.61
5.4.130.0030.02511.56
5.4.120.0050.01811.55
5.4.110.0070.01811.55
5.4.100.0030.02411.53
5.4.90.0060.02711.55
5.4.80.0020.02711.54
5.4.70.0070.02011.55
5.4.60.0040.02611.57
5.4.50.0060.02111.53
5.4.40.0020.02511.53
5.4.30.0070.01911.57
5.4.20.0020.02311.53
5.4.10.0030.02311.60
5.4.00.0050.02111.27
5.3.290.0040.02311.94
5.3.280.0030.02311.89
5.3.270.0050.02311.90
5.3.260.0060.02111.90
5.3.250.0050.02011.90
5.3.240.0060.02411.90
5.3.230.0060.02011.89
5.3.220.0060.02111.88
5.3.210.0040.02311.88
5.3.200.0060.02511.88
5.3.190.0050.02111.87
5.3.180.0060.02111.87
5.3.170.0060.02111.87
5.3.160.0020.02311.88
5.3.150.0040.02211.87
5.3.140.0060.02111.87
5.3.130.0050.02211.87
5.3.120.0030.02411.87
5.3.110.0040.02311.87
5.3.100.0020.02111.60
5.3.90.0050.02011.58
5.3.80.0050.02511.58
5.3.70.0040.01911.58
5.3.60.0060.02311.57
5.3.50.0060.02111.54
5.3.40.0060.01911.54
5.3.30.0050.02111.52
5.3.20.0050.02011.41
5.3.10.0020.02411.40
5.3.00.0040.01911.39
5.2.170.0060.01710.14
5.2.160.0030.01710.14
5.2.150.0050.01610.14
5.2.140.0040.01810.14
5.2.130.0030.02010.12
5.2.120.0040.01610.12
5.2.110.0050.01810.12
5.2.100.0040.02110.12
5.2.90.0060.01610.12
5.2.80.0030.01610.12
5.2.70.0070.01510.12
5.2.60.0040.02110.10
5.2.50.0040.01610.08
5.2.40.0070.01310.07
5.2.30.0080.01510.06
5.2.20.0040.01810.05
5.2.10.0070.01410.00
5.2.00.0040.0149.93
5.1.60.0050.0189.58
5.1.50.0040.0189.57
5.1.40.0030.0209.56
5.1.30.0050.0159.74
5.1.20.0070.0149.75
5.1.10.0020.0169.61
5.1.00.0060.0149.61
5.0.50.0020.0148.85
5.0.40.0040.0108.78
5.0.30.0010.0208.69
5.0.20.0020.0138.67
5.0.10.0040.0118.66
5.0.00.0040.0168.66
4.4.90.0020.0107.92
4.4.80.0040.0087.91
4.4.70.0040.0097.91
4.4.60.0040.0097.91
4.4.50.0040.0097.92
4.4.40.0010.0167.89
4.4.30.0020.0107.92
4.4.20.0020.0097.96
4.4.10.0040.0117.96
4.4.00.0020.0167.92
4.3.110.0020.0127.87
4.3.100.0010.0127.87
4.3.90.0040.0087.85
4.3.80.0050.0147.83
4.3.70.0010.0117.85
4.3.60.0030.0107.85
4.3.50.0030.0147.85
4.3.40.0030.0147.80
4.3.30.0020.0117.19
4.3.20.0010.0107.17
4.3.10.0030.0117.15
4.3.00.0100.01513.48

preferences:
66.71 ms | 400 KiB | 5 Q