3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(1 == 0) { echo '"if" thinks it\'s true'; } else { echo '"if" thinks it\'s false'; }

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.01316.38
8.3.50.0140.00317.17
8.3.40.0060.01218.97
8.3.30.0070.00718.56
8.3.20.0000.00918.52
8.3.10.0050.00320.53
8.3.00.0000.00817.38
8.2.180.0220.00016.38
8.2.170.0070.01122.96
8.2.160.0070.00722.02
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00219.64
8.2.110.0040.00721.00
8.2.100.0040.00717.88
8.2.90.0060.00319.08
8.2.80.0000.00817.93
8.2.70.0060.00317.50
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0000.00718.03
8.2.30.0000.00817.85
8.2.20.0000.00817.58
8.2.10.0080.00017.66
8.2.00.0090.00017.54
8.1.280.0140.00725.92
8.1.270.0070.00024.66
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00320.52
8.1.230.0040.00720.85
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0040.00416.99
8.1.190.0050.00317.16
8.1.180.0050.00318.10
8.1.170.0040.00418.91
8.1.160.0020.00518.69
8.1.150.0000.00718.48
8.1.140.0030.00617.35
8.1.130.0000.00817.74
8.1.120.0000.00717.22
8.1.110.0040.00417.29
8.1.100.0080.00017.38
8.1.90.0050.00317.21
8.1.80.0060.00317.36
8.1.70.0070.00017.31
8.1.60.0000.00717.38
8.1.50.0100.00017.39
8.1.40.0000.00817.28
8.1.30.0000.00717.54
8.1.20.0040.00417.57
8.1.10.0040.00417.45
8.1.00.0000.00717.30
8.0.300.0040.00419.97
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0000.00717.12
8.0.260.0030.00316.72
8.0.250.0080.00016.79
8.0.240.0000.00716.89
8.0.230.0030.00316.82
8.0.220.0030.00316.82
8.0.210.0030.00316.78
8.0.200.0000.00616.77
8.0.190.0030.00316.75
8.0.180.0070.00016.82
8.0.170.0040.00416.79
8.0.160.0070.00016.82
8.0.150.0080.00016.66
8.0.140.0000.01016.80
8.0.130.0050.00013.28
8.0.120.0040.00416.81
8.0.110.0000.00716.81
8.0.100.0000.00716.84
8.0.90.0040.00416.64
8.0.80.0070.01016.83
8.0.70.0000.00716.93
8.0.60.0040.00416.81
8.0.50.0070.00016.84
8.0.30.0090.00916.97
8.0.20.0090.00917.11
8.0.10.0070.00016.94
8.0.00.0100.00816.67
7.4.330.0020.00212.84
7.4.320.0060.00016.27
7.4.300.0000.00616.29
7.4.290.0000.00716.41
7.4.280.0040.00416.36
7.4.270.0040.00416.37
7.4.260.0030.00313.10
7.4.250.0040.00416.44
7.4.240.0070.00016.42
7.4.230.0000.00716.18
7.4.220.0040.01516.30
7.4.210.0080.01116.40
7.4.200.0040.00416.49
7.4.190.0000.00716.61
7.4.160.0090.00616.23
7.4.150.0060.01316.42
7.4.140.0120.00716.25
7.4.130.0080.01016.39
7.4.120.0090.00916.34
7.4.110.0170.00516.43
7.4.100.0120.00616.57
7.4.90.0070.01016.22
7.4.80.0070.01016.29
7.4.70.0100.00716.32
7.4.60.0100.00716.39
7.4.50.0000.00816.32
7.4.40.0040.01216.34
7.4.30.0070.01016.43
7.4.00.0180.00015.01
7.3.330.0000.00612.88
7.3.320.0050.00013.06
7.3.310.0070.00016.27
7.3.300.0030.00316.04
7.3.290.0130.00716.18
7.3.280.0060.01016.21
7.3.270.0070.01016.27
7.3.260.0090.01016.20
7.3.250.0090.01416.31
7.3.240.0120.00616.08
7.3.230.0170.00616.15
7.3.210.0100.00716.24
7.3.200.0070.01619.39
7.3.190.0040.01416.32
7.3.180.0090.01216.10
7.3.170.0000.01516.40
7.3.160.0060.01016.35
7.3.120.0040.01214.55
7.2.330.0040.01416.36
7.2.320.0120.00916.61
7.2.310.0120.01016.23
7.2.300.0060.01216.62
7.2.290.0070.01416.43
7.1.100.0030.00617.80
7.1.70.0000.00817.04
7.1.60.0060.01619.40
7.1.50.0090.00616.77
7.1.00.0100.06022.31
7.0.200.0030.00714.63
7.0.140.0030.07322.21
7.0.120.0030.06722.16
7.0.60.0030.04319.81
7.0.50.0100.07717.76
7.0.40.0070.06319.96
7.0.30.0400.04020.30
7.0.20.0230.06319.99
7.0.10.0170.08320.09
7.0.00.0100.08720.34
5.6.280.0070.07021.08
5.6.210.0030.04020.74
5.6.200.0170.07318.19
5.6.190.0070.09020.67
5.6.180.3270.04720.35
5.6.170.0230.03320.28
5.6.160.0100.08720.51
5.6.150.0100.07718.11
5.6.140.0000.07718.22
5.6.130.0030.05318.12
5.6.120.0030.06721.09
5.6.110.0100.04721.00
5.6.100.0030.09020.88
5.6.90.0070.08320.89
5.6.80.0100.07020.51
5.5.350.0300.07020.27
5.5.340.0000.05317.98
5.5.330.0070.04720.15
5.5.320.0300.07320.13
5.5.310.0400.06320.12
5.5.300.0030.09017.91
5.5.290.0170.07017.91
5.5.280.0070.04320.97
5.5.270.0100.07020.79
5.5.260.0170.04020.95
5.5.250.0100.05720.79
5.5.240.0230.06720.03
5.4.450.0100.06019.52
5.4.440.0100.07719.41
5.4.430.0070.07319.47
5.4.420.0030.08019.11
5.4.410.0000.07319.27
5.4.400.0070.07319.09
5.4.390.0100.03319.11
5.4.380.0100.03719.08
5.4.370.0100.07019.14
5.4.360.0070.04318.79
5.4.350.0100.05718.79
5.4.340.0070.07019.02
5.4.320.0200.06018.79
5.4.310.0130.07018.87
5.4.300.0100.06718.80
5.4.290.0030.08319.14
5.4.280.0030.04719.14
5.4.270.0070.05718.80
5.4.260.0070.05319.17
5.4.250.0030.07318.78
5.4.240.0100.07019.07
5.4.230.0030.05318.78
5.4.220.0100.07018.92
5.4.210.0100.06719.07
5.4.200.0130.04318.99
5.4.190.0070.07718.90
5.4.180.0100.06719.06
5.4.170.0070.08018.77
5.4.160.0070.04718.78
5.4.150.0130.07018.98
5.4.140.0000.05716.34
5.4.130.0070.07316.47
5.4.120.0100.07016.21
5.4.110.0100.03316.34
5.4.100.0000.07316.35
5.4.90.0100.04016.37
5.4.80.0070.03716.23
5.4.70.0070.06316.30
5.4.60.0130.07316.30
5.4.50.0070.07716.30
5.4.40.0100.04316.23
5.4.30.0030.04316.21
5.4.20.0100.04716.25
5.4.10.0130.06716.34
5.4.00.0000.04015.66
5.3.290.0100.07314.50
5.3.280.0130.07314.52
5.3.270.0070.08314.54
5.3.260.0100.07714.48
5.3.250.0200.06014.57
5.3.240.0000.06014.55
5.3.230.0030.08014.47
5.3.220.0100.07314.49
5.3.210.0030.06314.52
5.3.200.0000.08014.48
5.3.190.0070.07314.50
5.3.180.0070.05714.48
5.3.170.0030.07314.53
5.3.160.0130.06314.44
5.3.150.0130.07014.48
5.3.140.0170.06714.48
5.3.130.0070.08014.47
5.3.120.0100.06714.63
5.3.110.0100.04014.36
5.3.100.0070.06014.04
5.3.90.0100.04313.80
5.3.80.0070.06013.99
5.3.70.0100.05013.85
5.3.60.0070.06713.95
5.3.50.0270.05013.88
5.3.40.0030.04713.87
5.3.30.0070.07013.86
5.3.20.0030.04313.65
5.3.10.0270.02313.57
5.3.00.0130.06313.58
5.2.170.0070.03311.15
5.2.160.0100.05711.15
5.2.150.0030.04311.11
5.2.140.0030.03711.03
5.2.130.0100.03711.25
5.2.120.0100.05711.11
5.2.110.0030.03711.02
5.2.100.0030.03011.11
5.2.90.0070.02711.04
5.2.80.0000.03311.02
5.2.70.0030.06710.95
5.2.60.0030.06311.12
5.2.50.0170.05010.95
5.2.40.0030.06710.97
5.2.30.0070.06310.90
5.2.20.0000.04310.89
5.2.10.0000.03310.86
5.2.00.0100.05310.70
5.1.60.0130.0409.95
5.1.50.0030.03310.00
5.1.40.0100.0379.95
5.1.30.0130.04710.37
5.1.20.0070.05710.33
5.1.10.0030.03310.13
5.1.00.0030.06010.21
5.0.50.0000.0438.52
5.0.40.0030.0508.42
5.0.30.0000.0678.42
5.0.20.0100.0338.42
5.0.10.0000.0508.42
5.0.00.0030.0578.42
4.4.90.0000.0408.42
4.4.80.0000.0308.42
4.4.70.0030.0378.42
4.4.60.0000.0378.42
4.4.50.0070.0208.42
4.4.40.0000.0578.42
4.4.30.0030.0338.42
4.4.20.0000.0378.42
4.4.10.0030.0338.42
4.4.00.0000.0308.42
4.3.110.0070.0138.42
4.3.100.0000.0378.42
4.3.90.0030.0238.42
4.3.80.0030.0538.42
4.3.70.0000.0378.42
4.3.60.0030.0308.42
4.3.50.0000.0238.42
4.3.40.0030.0438.42
4.3.30.0130.0278.42
4.3.20.0070.0378.42
4.3.10.0000.0338.42
4.3.00.0000.0208.42

preferences:
46.17 ms | 401 KiB | 5 Q