3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cupContent = ['RAGE!!!', 'tea, my lord', 'SHIT!!!', 'coffee', 'vodka, my comrad']; echo "How about cup of {$cupContent[rand(0, 4)]}?";

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.120.0040.01117.15
7.3.110.0060.00917.15
7.3.100.0030.01217.15
7.3.90.0070.01017.15
7.3.80.0120.00017.15
7.3.70.0070.00717.15
7.3.60.0060.01017.15
7.3.50.0070.00717.15
7.3.40.0030.01317.15
7.3.30.0060.00917.15
7.3.20.0040.00817.15
7.3.10.0030.01317.15
7.3.00.0100.00617.15
7.2.240.0070.01117.15
7.2.230.0030.01417.15
7.2.220.0030.01317.15
7.2.210.0070.00317.15
7.2.200.0060.01017.15
7.2.190.0030.01017.15
7.2.180.0060.00617.15
7.2.170.0030.00917.15
7.2.160.0070.00317.15
7.2.150.0000.01317.15
7.2.140.0030.00717.15
7.2.130.0030.00717.15
7.2.120.0080.00817.15
7.2.110.0090.00617.15
7.2.100.0000.01117.15
7.2.90.0060.00617.15
7.2.80.0000.01617.15
7.2.70.0030.01417.15
7.2.60.0030.00917.15
7.2.50.0000.01517.15
7.2.40.0060.00617.15
7.2.30.0070.00717.15
7.2.20.0030.01017.15
7.2.10.0060.00617.15
7.2.00.0050.01118.11
7.1.330.0110.00417.15
7.1.320.0060.00717.15
7.1.310.0040.01217.15
7.1.300.0030.00917.15
7.1.290.0110.00417.15
7.1.280.0030.01317.15
7.1.270.0060.00917.15
7.1.260.0030.01017.15
7.1.250.0070.00417.15
7.1.70.0000.00717.06
7.1.60.0110.01419.43
7.1.50.0130.00616.80
7.1.00.0030.05322.30
7.0.200.0160.00516.53
7.0.140.0000.07721.95
7.0.60.0100.06320.08
7.0.50.0200.07317.85
7.0.40.0100.04020.40
7.0.30.0200.05020.30
7.0.20.0470.06020.20
7.0.10.0070.08720.20
7.0.00.0030.04320.00
5.6.280.0070.07020.92
5.6.210.0170.07320.47
5.6.200.0000.04718.12
5.6.190.0030.07720.61
5.6.180.0500.05720.64
5.6.170.0230.07320.53
5.6.160.0070.08320.35
5.6.150.0070.07018.21
5.6.140.0070.08018.21
5.6.130.0100.04718.11
5.6.120.0030.04020.99
5.6.110.0070.03720.99
5.6.100.0070.08020.98
5.6.90.0200.07021.06
5.6.80.0130.07720.41
5.5.350.0200.04320.41
5.5.340.0070.06017.89
5.5.330.0130.06320.25
5.5.320.0130.04020.51
5.5.310.0230.06020.28
5.5.300.0030.06017.96
5.5.290.0000.04317.96
5.5.280.0100.07720.86
5.5.270.0030.05320.89
5.5.260.0070.08320.95
5.5.250.0000.07320.65
5.5.240.0030.07320.18
5.4.450.0570.05019.45
5.4.440.0970.05719.49
5.4.430.0900.05319.63
5.4.420.1100.05319.25
5.4.410.0800.05019.34
5.4.400.0800.05319.18
5.4.390.1130.05318.99
5.4.380.0230.05318.74
5.4.370.0030.04018.56
5.4.360.0070.04318.46
5.4.350.0080.04211.97
5.4.340.0110.04011.97
5.4.320.0060.04312.46
5.4.310.0050.03812.45
5.4.300.0030.03912.45
5.4.290.0060.03712.45
5.4.280.0070.03712.35
5.4.270.0040.03912.35
5.4.260.0100.03512.35
5.4.250.0070.03712.35
5.4.240.0100.05318.60
5.4.230.0130.05018.82
5.4.220.0070.05718.67
5.4.210.0130.05018.68
5.4.200.0030.05318.68
5.4.190.0070.06718.92
5.4.180.0170.06018.92
5.4.170.0070.05318.83
5.4.160.0100.04718.84
5.4.150.0100.06718.77
5.4.140.0070.05316.52
5.4.130.0130.04016.48
5.4.120.0070.05316.18
5.4.110.0030.05716.18
5.4.100.0100.04716.43
5.4.90.0000.05316.19
5.4.80.0100.04316.31
5.4.70.0070.05316.14
5.4.60.0030.05716.40
5.4.50.0100.07016.33
5.4.40.0130.06316.38
5.4.30.0130.05016.35
5.4.20.0030.05316.31
5.4.10.0100.05016.36
5.4.00.0100.06015.71
5.3.290.0100.05712.80
5.3.280.0070.06314.39
5.3.270.0000.07714.63
5.3.260.0000.07714.48
5.3.250.0030.05314.62
5.3.240.0070.05014.65
5.3.230.0070.04714.39
5.3.220.0130.06014.44
5.3.210.0030.07714.59
5.3.200.0130.05014.45
5.3.190.0130.05014.62
5.3.180.0100.05314.27
5.3.170.0030.05714.55
5.3.160.0070.06314.42
5.3.150.0100.07014.57
5.3.140.0030.06014.55
5.3.130.0000.06314.70
5.3.120.0130.05314.34
5.3.110.0070.05014.57
5.3.100.0100.04713.90
5.3.90.0130.06013.79
5.3.80.0200.03713.89
5.3.70.0170.04313.91
5.3.60.0070.05313.79
5.3.50.0070.05013.86
5.3.40.0070.06313.89
5.3.30.0130.05014.00
5.3.20.0030.05013.73
5.3.10.0070.04713.80
5.3.00.0100.04313.69
5.2.170.0070.06011.05
5.2.160.0070.03711.14
5.2.150.0030.04311.14
5.2.140.0000.04711.14
5.2.130.0170.04311.25
5.2.120.0100.04711.19
5.2.110.0070.03711.01
5.2.100.0070.04311.11
5.2.90.0000.04311.21
5.2.80.0130.04710.99
5.2.70.0030.05311.11
5.2.60.0100.05011.03
5.2.50.0130.04310.91
5.2.40.0070.04010.91
5.2.30.0000.05710.99
5.2.20.0000.05310.89
5.2.10.0070.05010.86
5.2.00.0030.04010.48
5.1.60.0000.0539.95
5.1.50.0100.0309.84
5.1.40.0070.0479.92
5.1.30.0000.04710.28
5.1.20.0070.03310.11
5.1.10.0030.0479.95
5.1.00.0100.02710.12
5.0.50.0030.0278.61
5.0.40.0070.0238.55
5.0.30.0030.0438.31
5.0.20.0070.0308.24
5.0.10.0030.0278.14
5.0.00.0070.0508.11
4.4.90.0030.0206.77
4.4.80.0030.0206.77
4.4.70.0030.0276.77
4.4.60.0000.0306.77
4.4.50.0000.0236.77
4.4.40.0000.0336.92
4.4.30.0000.0236.92
4.4.20.0000.0236.92
4.4.10.0030.0206.92
4.4.00.0030.0336.92
4.3.110.0070.0176.92
4.3.100.0000.0206.92
4.3.90.0000.0236.92
4.3.80.0030.0376.92
4.3.70.0000.0236.92
4.3.60.0000.0276.92
4.3.50.0000.0236.92
4.3.40.0000.0336.92
4.3.30.0100.0206.92
4.3.20.0000.0236.92
4.3.10.0030.0236.92
4.3.00.0070.0238.16

preferences:
35.22 ms | 400 KiB | 5 Q