3v4l.org

run code in 300+ PHP versions simultaneously
<?php function basicTraining($work) { if ($work > 8) { echo "After a hard day of basic training, you could eat a rattlesnake!"; } return true; } basicTraining(); ?>

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.0050.00916.73
8.3.50.0100.00921.09
8.3.40.0100.00718.84
8.3.30.0060.01218.84
8.3.20.0040.00420.10
8.3.10.0040.00423.51
8.3.00.0050.00319.77
8.2.180.0110.00318.29
8.2.170.0100.00322.96
8.2.160.0070.00720.35
8.2.150.0110.00425.66
8.2.140.0040.00424.66
8.2.130.0090.00019.26
8.2.120.0080.00026.35
8.2.110.0110.00020.94
8.2.100.0030.00917.79
8.2.90.0050.00317.72
8.2.80.0080.00017.97
8.2.70.0060.00317.38
8.2.60.0030.00517.78
8.2.50.0080.00018.07
8.2.40.0000.00822.17
8.2.30.0050.00220.49
8.2.20.0040.00417.68
8.2.10.0000.00717.99
8.2.00.0050.00217.89
8.1.280.0030.01025.92
8.1.270.0120.00620.20
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0060.00322.20
8.1.230.0050.00520.82
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.47
8.1.160.0030.00320.57
8.1.150.0040.00418.68
8.1.140.0040.00419.38
8.1.130.0030.00317.61
8.1.120.0000.00817.37
8.1.110.0000.00717.33
8.1.100.0040.00417.34
8.1.90.0040.00417.36
8.1.80.0000.00817.34
8.1.70.0040.00417.23
8.1.60.0030.00517.50
8.1.50.0000.00817.43
8.1.40.0000.00917.30
8.1.30.0030.00517.54
8.1.20.0030.00517.55
8.1.10.0040.00417.38
8.1.00.0040.00417.30
8.0.300.0000.00720.14
8.0.290.0030.00616.75
8.0.280.0070.00018.36
8.0.270.0000.00717.16
8.0.260.0000.00617.09
8.0.250.0060.00016.82
8.0.240.0080.00016.99
8.0.230.0030.00516.96
8.0.220.0000.00716.94
8.0.210.0040.00416.79
8.0.200.0060.00016.98
8.0.190.0030.00616.84
8.0.180.0070.00016.94
8.0.170.0000.00816.83
8.0.160.0040.00416.92
8.0.150.0000.00716.84
8.0.140.0040.00416.86
8.0.130.0030.00313.37
8.0.120.0050.00216.84
8.0.110.0000.00716.84
8.0.100.0040.00416.77
8.0.90.0000.00716.88
8.0.80.0100.00616.87
8.0.70.0080.00016.76
8.0.60.0040.00416.83
8.0.50.0020.00516.66
8.0.30.0110.00816.92
8.0.20.0130.00917.40
8.0.10.0000.00716.90
8.0.00.0040.01416.58
7.4.330.0020.00216.73
7.4.320.0000.00616.23
7.4.300.0040.00416.43
7.4.290.0040.00416.41
7.4.280.0000.00816.35
7.4.270.0000.00716.52
7.4.260.0030.00316.55
7.4.250.0070.00016.44
7.4.240.0000.00816.53
7.4.230.0000.00716.23
7.4.220.0060.01016.55
7.4.210.0060.00916.63
7.4.200.0030.00316.53
7.4.160.0100.00716.38
7.4.150.0080.01217.40
7.4.140.0120.01017.86
7.4.130.0060.01116.35
7.4.120.0030.01416.54
7.4.110.0030.01316.38
7.4.100.0150.00316.40
7.4.90.0120.00616.43
7.4.80.0060.01019.39
7.4.70.0130.00316.65
7.4.60.0130.00316.60
7.4.50.0030.01316.23
7.4.40.0120.01016.36
7.4.30.0060.01216.50
7.4.00.0100.00614.86
7.3.330.0050.00013.22
7.3.320.0000.00513.30
7.3.310.0030.00316.15
7.3.300.0040.00416.18
7.3.290.0060.01016.24
7.3.280.0140.00716.32
7.3.270.0140.00317.40
7.3.260.0090.00616.34
7.3.250.0070.01016.46
7.3.240.0120.00616.26
7.3.230.0100.01316.44
7.3.210.0120.00416.51
7.3.200.0140.00416.28
7.3.190.0100.00716.46
7.3.180.0100.00716.59
7.3.170.0100.00716.58
7.3.160.0060.01016.39
7.3.120.0060.01114.76
7.3.110.0050.01314.69
7.3.100.0070.00714.79
7.3.90.0050.00814.68
7.3.80.0060.00514.66
7.3.70.0070.00914.78
7.3.60.0070.00814.53
7.3.50.0040.00914.77
7.3.40.0060.00614.72
7.3.30.0060.01014.77
7.3.20.0040.00816.53
7.3.10.0090.00416.71
7.3.00.0040.00916.63
7.2.330.0200.00616.61
7.2.320.0140.00316.51
7.2.310.0050.01116.27
7.2.300.0030.02016.44
7.2.290.0070.01016.49
7.2.250.0070.00814.86
7.2.240.0080.01014.90
7.2.230.0030.01114.94
7.2.220.0060.00815.05
7.2.210.0050.00914.83
7.2.200.0060.00714.97
7.2.190.0080.00614.80
7.2.180.0050.00914.80
7.2.170.0070.00714.90
7.2.160.0060.01214.95
7.2.150.0070.00716.67
7.2.140.0030.01416.75
7.2.130.0110.00316.66
7.2.120.0040.01516.72
7.2.110.0060.01016.81
7.2.100.0030.00916.53
7.2.90.0060.00916.70
7.2.80.0030.01716.85
7.2.70.0070.00716.79
7.2.60.0080.00816.65
7.2.50.0090.00916.89
7.2.40.0030.00816.63
7.2.30.0070.00716.74
7.2.20.0060.00616.86
7.2.10.0060.00616.81
7.2.00.0090.00517.95
7.1.330.0040.01115.59
7.1.320.0060.00715.67
7.1.310.0030.00915.62
7.1.300.0060.00615.61
7.1.290.0060.00715.56
7.1.280.0080.00415.61
7.1.270.0060.00815.51
7.1.260.0070.00515.61
7.1.250.0080.00615.38
7.1.200.0100.00315.39
7.1.100.0090.00017.73
7.1.70.0030.01217.00
7.1.60.0140.01019.52
7.1.50.0040.01516.89
7.1.00.0030.07722.36
7.0.200.0000.01116.56
7.0.60.0100.07719.98
7.0.50.0030.08717.94
7.0.40.0030.09019.96
7.0.30.0270.08020.30
7.0.20.0300.08320.18
7.0.10.0200.07320.26
7.0.00.0100.08020.25
5.6.280.0100.02320.91
5.6.210.0030.07720.63
5.6.200.0130.04318.27
5.6.190.0030.04320.48
5.6.180.0300.08320.34
5.6.170.0330.06720.62
5.6.160.0130.07020.50
5.6.150.0100.05018.29
5.6.140.0030.07318.18
5.6.130.0030.04718.18
5.6.120.0030.04021.00
5.6.110.0070.08020.97
5.6.100.0200.06021.09
5.6.90.0100.08020.98
5.6.80.0100.07320.39
5.5.350.0100.06720.39
5.5.340.0070.03717.99
5.5.330.0030.05020.13
5.5.320.0430.03720.19
5.5.310.0230.07320.39
5.5.300.0100.05718.06
5.5.290.0000.04717.97
5.5.280.0000.08320.77
5.5.270.0030.06020.80
5.5.260.0100.08320.75
5.5.250.0000.04320.59
5.5.240.0370.06720.15

preferences:
60.86 ms | 401 KiB | 5 Q