3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($foo = true) { echo 'true'; } if ($foo = false) { echo 'false'; } if ($foo = null) { echo 'null'; }

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.0090.00618.72
8.3.30.0100.00319.14
8.3.20.0040.00420.07
8.3.10.0040.00421.91
8.3.00.0080.00019.01
8.2.170.0040.01122.96
8.2.160.0120.00319.36
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00519.54
8.2.110.0060.00322.07
8.2.100.0030.00917.78
8.2.90.0000.00917.78
8.2.80.0040.00419.00
8.2.70.0040.00417.93
8.2.60.0050.00218.03
8.2.50.0060.00318.10
8.2.40.0040.00420.42
8.2.30.0080.00019.17
8.2.20.0040.00417.61
8.2.10.0040.00418.16
8.2.00.0040.00417.51
8.1.270.0030.00618.88
8.1.260.0000.00826.35
8.1.250.0050.00228.09
8.1.240.0000.00822.16
8.1.230.0040.00720.88
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.01017.11
8.1.190.0050.00317.11
8.1.180.0080.00018.10
8.1.170.0080.00018.52
8.1.160.0070.00020.32
8.1.150.0020.00518.86
8.1.140.0000.00917.38
8.1.130.0070.00017.88
8.1.120.0030.00317.42
8.1.110.0000.00817.29
8.1.100.0040.00417.24
8.1.90.0050.00317.35
8.1.80.0000.00717.44
8.1.70.0070.00017.42
8.1.60.0000.00917.42
8.1.50.0040.00417.41
8.1.40.0030.00617.35
8.1.30.0050.00317.48
8.1.20.0040.00417.53
8.1.10.0030.00617.50
8.1.00.0090.00017.45
8.0.300.0000.00720.07
8.0.290.0080.00016.75
8.0.280.0000.00718.48
8.0.270.0000.00717.11
8.0.260.0000.00617.23
8.0.250.0030.00316.93
8.0.240.0040.00416.76
8.0.230.0000.00716.89
8.0.220.0030.00316.86
8.0.210.0030.00316.80
8.0.200.0030.00516.90
8.0.190.0040.00416.93
8.0.180.0000.00716.76
8.0.170.0000.00716.79
8.0.160.0040.00416.79
8.0.150.0000.00816.68
8.0.140.0080.00016.68
8.0.130.0070.00013.29
8.0.120.0000.00816.76
8.0.110.0000.00716.75
8.0.100.0040.00416.71
8.0.90.0040.00416.66
8.0.80.0030.01716.78
8.0.70.0000.00716.66
8.0.60.0040.00416.76
8.0.50.0040.00416.84
8.0.30.0110.01216.97
8.0.20.0130.00717.40
8.0.10.0050.00316.99
8.0.00.0080.01016.60
7.4.330.0030.00315.03
7.4.320.0030.00316.43
7.4.300.0070.00016.35
7.4.290.0000.00616.34
7.4.280.0000.00816.43
7.4.270.0020.00516.45
7.4.260.0020.00516.43
7.4.250.0070.00016.43
7.4.240.0060.00216.48
7.4.230.0000.00716.27
7.4.220.0100.01616.37
7.4.210.0120.00316.45
7.4.200.0050.00316.35
7.4.160.0060.00916.35
7.4.150.0100.00717.40
7.4.140.0120.00917.86
7.4.130.0090.00816.31
7.4.120.0070.01116.51
7.4.110.0080.01216.31
7.4.100.0070.01116.37
7.4.90.0140.00316.41
7.4.80.0110.00819.39
7.4.70.0150.00716.52
7.4.60.0090.00616.33
7.4.50.0050.00316.21
7.4.40.0090.00916.48
7.4.30.0100.00716.31
7.4.00.0070.01015.11
7.3.330.0050.00013.04
7.3.320.0000.00512.98
7.3.310.0070.00016.15
7.3.300.0000.00616.09
7.3.290.0010.01216.10
7.3.280.0080.01016.11
7.3.270.0090.00917.40
7.3.260.0120.00616.30
7.3.250.0050.01216.35
7.3.240.0090.01216.22
7.3.230.0060.01616.39
7.3.210.0060.00916.24
7.3.200.0040.01219.39
7.3.190.0090.01216.38
7.3.180.0130.00716.03
7.3.170.0190.00316.42
7.3.160.0060.00916.37
7.2.330.0030.01516.21
7.2.320.0050.01316.62
7.2.310.0090.00916.38
7.2.300.0030.01316.24
7.2.290.0030.01416.48
7.2.60.0030.00916.71
7.2.00.0000.01119.30
7.1.200.0080.00415.53
7.1.100.0060.00916.36
7.1.70.0000.00816.66
7.1.60.0110.01519.22
7.1.50.0070.01416.38
7.1.00.0070.07022.27
7.0.200.0030.00616.82
7.0.140.0000.03722.08
7.0.60.0070.08319.88
7.0.50.0030.04017.80
7.0.40.0070.05320.06
7.0.30.0170.04020.33
7.0.20.0200.04719.99
7.0.10.0170.08020.12
7.0.00.0100.09020.32
5.6.280.0100.06721.02
5.6.210.0070.06320.60
5.6.200.0130.04018.16
5.6.190.0170.07720.63
5.6.180.0300.04020.61
5.6.170.0170.04320.47
5.6.160.0070.08320.54
5.6.150.0030.08718.22
5.6.140.0100.07318.12
5.6.130.0000.04318.15
5.6.120.0000.04320.98
5.6.110.0030.08020.97
5.6.100.0030.05020.97
5.6.90.0070.04721.07
5.6.80.0170.07020.37
5.5.350.0300.07320.31
5.5.340.0100.04318.01
5.5.330.0000.04720.58
5.5.320.0200.06020.20
5.5.310.0330.07720.27
5.5.300.0070.07718.00
5.5.290.0100.03317.96
5.5.280.0030.06320.79
5.5.270.0030.04020.79
5.5.260.0070.08320.71
5.5.250.0130.06020.77
5.5.240.0130.06720.09
5.4.450.0600.06019.64
5.4.440.0700.05719.25
5.4.430.0470.07319.32
5.4.420.0870.06719.54
5.4.410.0030.06019.42
5.4.400.0630.06018.90
5.4.390.0570.06019.34
5.4.380.0200.05718.59
5.4.370.0230.05318.65
5.4.360.0270.06318.69
5.4.350.0170.07318.78
5.4.340.0270.06718.68
5.4.320.0170.07318.70
5.4.310.0170.06018.65
5.4.300.0170.06318.68
5.4.290.0270.04718.46
5.4.280.0200.07018.58
5.4.270.0200.07018.73
5.4.260.0100.06718.68
5.4.250.0300.05318.71
5.4.240.0230.07018.52
5.4.230.0200.06018.67
5.4.220.0130.07718.66
5.4.210.0270.05718.55
5.4.200.0170.07716.46
5.4.190.0300.06318.66
5.4.180.0230.06318.70
5.4.170.0200.07318.72
5.4.160.0230.05318.62
5.4.150.0130.06018.71
5.4.140.0200.05716.23
5.4.130.0230.05016.08
5.4.120.0200.05016.08
5.4.110.0130.05316.25
5.4.100.0200.06316.12
5.4.90.0270.06316.19
5.4.80.0170.05716.06
5.4.70.0270.06316.29
5.4.60.0200.05016.19
5.4.50.0100.06016.27
5.4.40.0230.06016.20
5.4.30.0200.06016.13
5.4.20.0270.05016.33
5.4.10.0270.06016.32
5.4.00.0300.06015.50
5.3.290.0230.07014.57
5.3.280.0270.05314.62
5.3.270.0300.06714.51
5.3.260.0270.06714.60
5.3.250.0230.07014.58
5.3.240.0200.05314.60
5.3.230.0130.08014.60
5.3.220.0230.07014.65
5.3.210.0300.04714.49
5.3.200.0200.05314.54
5.3.190.0070.06714.49
5.3.180.0230.05714.56
5.3.170.0230.04714.52
5.3.160.0130.07014.66
5.3.150.0230.05014.54
5.3.140.0130.07014.54
5.3.130.0170.05714.63
5.3.120.0130.07314.64
5.3.110.0270.07314.59
5.3.100.0270.06314.02
5.3.90.0200.07013.93
5.3.80.0200.07014.01
5.3.70.0300.06314.01
5.3.60.0130.08014.07
5.3.50.0300.06013.88
5.3.40.0230.06713.84
5.3.30.0270.06713.82
5.3.20.0230.05713.78
5.3.10.0200.06013.63
5.3.00.0300.05713.53
5.2.170.0200.05311.12
5.2.160.0200.05311.05
5.2.150.0170.05711.30
5.2.140.0170.05711.14
5.2.130.0230.05011.25
5.2.120.0200.04011.07
5.2.110.0130.06011.10
5.2.100.0270.04711.11
5.2.90.0200.04711.08
5.2.80.0170.04311.02
5.2.70.0200.04011.14
5.2.60.0100.04711.07
5.2.50.0100.04310.96
5.2.40.0230.04711.05
5.2.30.0200.05011.10
5.2.20.0170.04010.94
5.2.10.0100.04710.89
5.2.00.0100.04310.71
5.1.60.0100.04010.13
5.1.50.0270.02310.05
5.1.40.0130.04310.02
5.1.30.0100.05010.36
5.1.20.0130.05010.39
5.1.10.0130.03710.18
5.1.00.0070.05010.09
5.0.50.0100.0308.61
5.0.40.0130.0308.38
5.0.30.0200.0338.27
5.0.20.0130.0308.21
5.0.10.0070.0308.26
5.0.00.0130.0478.23
4.4.90.0070.0235.91
4.4.80.0100.0205.91
4.4.70.0070.0235.86
4.4.60.0100.0205.86
4.4.50.0030.0335.95
4.4.40.0100.0305.88
4.4.30.0000.0335.87
4.4.20.0100.0235.98
4.4.10.0030.0335.92
4.4.00.0100.0405.89
4.3.110.0070.0275.84
4.3.100.0070.0235.87
4.3.90.0070.0235.82
4.3.80.0230.0235.87
4.3.70.0100.0235.77
4.3.60.0170.0135.80
4.3.50.0030.0275.81
4.3.40.0000.0405.79
4.3.30.0030.0274.64
4.3.20.0070.0204.53
4.3.10.0000.0274.54
4.3.00.0100.0207.60

preferences:
41.55 ms | 400 KiB | 5 Q