3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 4; $hello = <<< Test asdfasdfasdf {if (3 ==4) {$a} else {5}} asdfasdf Test; echo $hello; ?>

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.0070.00716.38
8.3.50.0120.00921.04
8.3.40.0120.00318.48
8.3.30.0140.00318.67
8.3.20.0030.00520.06
8.3.10.0050.00321.68
8.3.00.0040.00423.52
8.2.180.0060.00916.63
8.2.170.0110.00422.96
8.2.160.0140.00020.35
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00619.66
8.2.110.0040.00422.20
8.2.100.0060.00617.80
8.2.90.0060.00319.05
8.2.80.0040.00418.04
8.2.70.0060.00317.63
8.2.60.0080.00017.68
8.2.50.0060.00318.07
8.2.40.0000.00820.61
8.2.30.0000.00720.68
8.2.20.0070.00017.64
8.2.10.0040.00418.09
8.2.00.0070.00018.18
8.1.280.0120.00325.92
8.1.270.0060.01223.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.59
8.1.230.0040.00719.15
8.1.220.0030.00517.89
8.1.210.0060.00318.77
8.1.200.0000.00917.10
8.1.190.0000.00917.10
8.1.180.0060.00318.10
8.1.170.0050.00318.51
8.1.160.0040.00420.68
8.1.150.0000.00718.76
8.1.140.0040.00419.42
8.1.130.0070.00017.64
8.1.120.0000.00717.40
8.1.110.0000.00717.29
8.1.100.0040.00417.38
8.1.90.0000.00717.38
8.1.80.0000.00717.32
8.1.70.0000.00817.36
8.1.60.0030.00517.41
8.1.50.0060.00317.42
8.1.40.0040.00417.42
8.1.30.0040.00417.41
8.1.20.0040.00417.48
8.1.10.0040.00417.48
8.1.00.0040.00417.45
8.0.300.0050.00218.77
8.0.290.0070.00016.88
8.0.280.0040.00418.36
8.0.270.0030.00317.25
8.0.260.0000.00917.23
8.0.250.0040.00416.90
8.0.240.0060.00016.93
8.0.230.0030.00316.88
8.0.220.0070.00016.93
8.0.210.0070.00016.95
8.0.200.0070.00016.93
8.0.190.0000.00717.03
8.0.180.0030.00616.96
8.0.170.0060.00316.87
8.0.160.0000.00716.98
8.0.150.0050.00216.96
8.0.140.0000.00716.79
8.0.130.0000.00613.33
8.0.120.0050.00316.91
8.0.110.0080.00016.95
8.0.100.0000.00916.95
8.0.90.0040.00416.88
8.0.80.0080.00816.99
8.0.70.0080.00016.81
8.0.60.0000.00816.78
8.0.50.0050.00316.72
8.0.30.0110.00717.07
8.0.20.0090.01417.40
8.0.10.0040.00416.89
8.0.00.0080.01116.70
7.4.330.0050.00016.77
7.4.320.0060.00016.44
7.4.300.0080.00016.42
7.4.290.0000.00716.55
7.4.280.0030.00516.45
7.4.270.0070.00016.42
7.4.260.0000.00716.38
7.4.250.0030.00616.38
7.4.240.0030.00316.50
7.4.230.0070.00016.34
7.4.220.0070.01116.63
7.4.210.0160.00316.41
7.4.200.0050.00316.27
7.4.160.0080.00816.38
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0090.01316.64
7.4.120.0150.00316.64
7.4.110.0090.01316.64
7.4.100.0120.00616.26
7.4.90.0120.00916.37
7.4.80.0130.00319.39
7.4.70.0100.01016.61
7.4.60.0120.00816.42
7.4.50.0040.01116.32
7.4.40.0090.00916.50
7.4.30.0060.01116.48
7.4.00.0070.00715.01
7.3.330.0000.00613.26
7.3.320.0030.00313.25
7.3.310.0030.00316.31
7.3.300.0000.00716.32
7.3.290.0070.01116.40
7.3.280.0080.00816.29
7.3.270.0120.01117.40
7.3.260.0110.00916.51
7.3.240.0130.00516.31
7.3.230.0060.01016.39
7.3.210.0120.00616.38
7.3.200.0030.01419.39
7.3.190.0190.00316.58
7.3.180.0040.01216.48
7.3.170.0060.01216.27
7.3.160.0070.00716.25
7.2.330.0040.01316.29
7.2.320.0030.01316.54
7.2.310.0100.00616.49
7.2.300.0100.01116.50
7.2.290.0130.00316.39
7.2.110.0220.00716.52
7.2.60.0060.00816.57
7.1.200.0070.00315.77
7.1.100.0060.00618.02
7.1.70.0040.00416.74
7.1.60.0100.01619.27
7.1.50.0230.01634.80
7.1.00.0000.08022.40
7.0.200.0000.00816.72
7.0.60.0170.07321.86
7.0.50.0070.08317.75
7.0.40.0070.04020.27
7.0.30.0330.07720.19
7.0.20.0230.08720.10
7.0.10.0170.07320.00
7.0.00.0100.07720.04
5.6.280.0030.03320.92
5.6.210.0170.06720.69
5.6.200.0070.08318.28
5.6.190.0170.07320.39
5.6.180.0230.05320.43
5.6.170.0270.07320.71
5.6.160.0030.09020.52
5.6.150.0130.05318.07
5.6.140.0000.04018.18
5.6.130.0070.04318.12
5.6.120.0100.06720.98
5.6.110.0030.08721.00
5.6.100.0000.07321.10
5.6.90.0070.04021.01
5.6.80.0100.07320.35
5.5.350.0000.09020.40
5.5.340.0070.04717.96
5.5.330.0030.05020.19
5.5.320.0270.06720.51
5.5.310.0330.07020.23
5.5.300.0100.06717.95
5.5.290.0070.07317.98
5.5.280.0030.04020.64
5.5.270.0230.06720.86
5.5.260.0130.05320.79
5.5.250.0100.08320.68
5.5.240.0200.07020.16

preferences:
78.02 ms | 401 KiB | 5 Q