3v4l.org

run code in 300+ PHP versions simultaneously
<?php if('!' === 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.40.0130.00718.53
8.3.30.0110.00418.54
8.3.20.0030.00618.65
8.3.10.0080.00018.79
8.3.00.0030.00619.25
8.2.170.0100.01022.96
8.2.160.0110.00418.52
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.79
8.2.110.0090.00020.92
8.2.100.0080.00417.91
8.2.90.0050.00317.91
8.2.80.0080.00020.38
8.2.70.0000.00817.91
8.2.60.0040.00418.09
8.2.50.0060.00318.10
8.2.40.0070.00019.21
8.2.30.0040.00419.16
8.2.20.0060.00317.47
8.2.10.0030.00517.66
8.2.00.0040.00417.48
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.06
8.1.230.0050.00522.66
8.1.220.0000.00817.74
8.1.210.0080.00018.89
8.1.200.0030.00617.10
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0050.00318.65
8.1.160.0040.00418.86
8.1.150.0030.00718.46
8.1.140.0090.00017.36
8.1.130.0000.00717.65
8.1.120.0070.00017.27
8.1.110.0030.00617.20
8.1.100.0030.00517.16
8.1.90.0030.00317.34
8.1.80.0050.00217.21
8.1.70.0030.00317.28
8.1.60.0030.00717.35
8.1.50.0000.00717.36
8.1.40.0030.00517.36
8.1.30.0040.00417.45
8.1.20.0000.00717.58
8.1.10.0060.00317.46
8.1.00.0080.00017.38
8.0.300.0050.00320.00
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0000.00817.20
8.0.260.0080.00016.80
8.0.250.0050.00316.88
8.0.240.0030.00516.90
8.0.230.0030.00316.77
8.0.220.0000.00716.77
8.0.210.0030.00616.82
8.0.200.0030.00316.77
8.0.190.0030.00516.77
8.0.180.0000.00716.73
8.0.170.0000.00816.68
8.0.160.0050.00216.73
8.0.150.0100.00016.66
8.0.140.0040.00416.79
8.0.130.0030.00313.21
8.0.120.0000.00816.81
8.0.110.0000.00716.71
8.0.100.0070.00016.84
8.0.90.0040.00416.91
8.0.80.0120.00316.76
8.0.70.0000.00716.69
8.0.60.0050.00316.66
8.0.50.0030.00516.93
8.0.30.0100.00616.72
8.0.20.0130.01316.79
8.0.10.0050.00316.88
8.0.00.0180.02016.64
7.4.330.0000.00512.91
7.4.320.0060.00016.43
7.4.300.0000.00616.50
7.4.290.0000.00816.50
7.4.280.0040.00416.42
7.4.270.0060.00016.45
7.4.260.0070.00013.17
7.4.250.0000.00816.35
7.4.240.0000.00716.39
7.4.230.0000.00616.45
7.4.220.0110.01516.46
7.4.210.0070.00716.35
7.4.200.0000.00716.20
7.4.190.0000.00716.41
7.4.160.0030.01316.41
7.4.150.0100.00716.35
7.4.140.0120.00616.54
7.4.130.0170.00316.25
7.4.120.0100.01016.42
7.4.110.0070.01016.54
7.4.100.0060.01116.30
7.4.90.0120.00616.30
7.4.80.0110.00719.39
7.4.70.0160.00016.34
7.4.60.0130.00316.45
7.4.50.0040.00816.39
7.4.40.0070.00316.30
7.4.30.0090.00616.44
7.4.00.0060.00614.75
7.3.330.0030.00313.06
7.3.320.0060.00012.96
7.3.310.0030.00316.27
7.3.300.0060.00016.21
7.3.290.0040.01016.18
7.3.280.0090.00716.18
7.3.270.0100.00716.34
7.3.260.0100.00716.39
7.3.250.0080.01216.26
7.3.240.0080.00816.32
7.3.230.0090.01216.15
7.3.210.0100.00616.36
7.3.200.0150.00816.28
7.3.190.0060.01016.27
7.3.180.0030.01316.21
7.3.170.0070.01416.38
7.3.160.0100.00616.56
7.3.120.0070.01014.73
7.2.330.0110.00616.60
7.2.320.0140.00916.52
7.2.310.0110.01116.43
7.2.300.0100.00716.32
7.2.290.0170.00416.52
7.2.00.0060.00919.23
7.1.100.0040.00817.62
7.1.70.0030.01017.13
7.1.60.0110.01419.30
7.1.50.0070.00316.88
7.1.00.0070.07022.57
7.0.200.0100.00316.66
7.0.140.0000.07722.21
7.0.120.0000.05322.03
7.0.60.0100.06719.90
7.0.50.0100.07717.90
7.0.40.0100.07720.28
7.0.30.0270.05320.09
7.0.20.0330.07020.04
7.0.10.0130.03320.00
7.0.00.0030.06320.17
5.6.280.0070.07021.01
5.6.210.0070.05020.65
5.6.200.0030.08318.13
5.6.190.0030.06720.39
5.6.180.0600.06020.27
5.6.170.0130.04720.44
5.6.160.0030.04320.70
5.6.150.0030.04018.18
5.6.140.0130.04718.08
5.6.130.0130.07318.08
5.6.120.0030.05321.00
5.6.110.0030.08320.96
5.6.100.0030.04720.97
5.6.90.0100.03720.99
5.6.80.0030.08320.36
5.5.350.0030.08020.30
5.5.340.0030.08317.98
5.5.330.0100.04020.19
5.5.320.0230.05720.29
5.5.310.0170.04320.27
5.5.300.0000.04018.01
5.5.290.0070.08017.87
5.5.280.0030.04020.76
5.5.270.0130.07020.86
5.5.260.0100.05020.77
5.5.250.0070.08020.68
5.5.240.0130.04020.13
5.4.450.0030.07319.45
5.4.440.0030.07019.48
5.4.430.0030.04719.23
5.4.420.0170.03019.50
5.4.410.0070.08018.98
5.4.400.0070.07019.18
5.4.390.0070.08019.18
5.4.380.0170.06319.18
5.4.370.0070.07718.88
5.4.360.0030.04019.14
5.4.350.0100.07019.19
5.4.340.0030.07018.81
5.4.320.0030.06718.91
5.4.310.0130.07019.08
5.4.300.0100.08019.17
5.4.290.0030.07719.00
5.4.280.0070.06318.91
5.4.270.0070.07719.07
5.4.260.0130.07019.11
5.4.250.0030.05018.80
5.4.240.0070.03318.90
5.4.230.0070.07018.89
5.4.220.0030.04019.16
5.4.210.0170.06719.15
5.4.200.0000.04719.14
5.4.190.0070.04719.07
5.4.180.0030.08019.07
5.4.170.0030.05719.16
5.4.160.0030.04319.15
5.4.150.0170.06718.77
5.4.140.0030.04016.29
5.4.130.0070.07716.37
5.4.120.0070.05716.29
5.4.110.0130.05316.27
5.4.100.0000.08016.39
5.4.90.0030.07316.39
5.4.80.0070.07016.34
5.4.70.0130.04316.21
5.4.60.0130.05316.32
5.4.50.0000.06016.38
5.4.40.0030.05016.59
5.4.30.0030.07316.24
5.4.20.0000.04016.21
5.4.10.0100.04016.25
5.4.00.0070.04015.65
5.3.290.0130.07314.45
5.3.280.0100.07014.53
5.3.270.0030.06014.39
5.3.260.0100.03314.52
5.3.250.0070.04014.56
5.3.240.0000.08014.57
5.3.230.0030.06714.41
5.3.220.0100.07014.52
5.3.210.0070.07314.44
5.3.200.0000.07314.46
5.3.190.0030.07714.44
5.3.180.0100.06714.65
5.3.170.0030.05014.53
5.3.160.0130.08314.57
5.3.150.0170.06314.48
5.3.140.0030.07314.47
5.3.130.0170.05314.44
5.3.120.0070.04314.47
5.3.110.0030.05714.46
5.3.100.0070.07313.93
5.3.90.0230.06014.03
5.3.80.0000.05313.83
5.3.70.0100.07013.81
5.3.60.0100.04013.94
5.3.50.0070.04713.73
5.3.40.0070.06013.75
5.3.30.0000.05013.72
5.3.20.0030.07313.61
5.3.10.0070.05313.49
5.3.00.0100.07013.57
5.2.170.0000.04011.22
5.2.160.0100.03311.04
5.2.150.0030.06311.22
5.2.140.0030.04310.98
5.2.130.0100.04711.03
5.2.120.0070.05710.99
5.2.110.0030.03011.03
5.2.100.0070.03310.96
5.2.90.0000.05311.07
5.2.80.0000.04310.98
5.2.70.0000.03711.03
5.2.60.0070.03310.95
5.2.50.0100.04710.94
5.2.40.0030.06310.96
5.2.30.0070.06010.86
5.2.20.0100.05311.04
5.2.10.0030.04310.84
5.2.00.0100.05310.61
5.1.60.0030.0239.98
5.1.50.0000.0479.89
5.1.40.0030.0409.81
5.1.30.0030.05710.41
5.1.20.0030.04010.25
5.1.10.0000.03310.11
5.1.00.0100.0279.96
5.0.50.0100.0308.60
5.0.40.0070.0238.41
5.0.30.0030.0338.11
5.0.20.0070.0408.19
5.0.10.0030.0478.16
5.0.00.0130.0338.12
4.4.90.0030.0137.86
4.4.80.0030.0177.86
4.4.70.0100.0177.86
4.4.60.0030.0137.86
4.4.50.0070.0207.86
4.4.40.0030.0307.86
4.4.30.0000.0237.86
4.4.20.0030.0207.86
4.4.10.0000.0177.86
4.4.00.0000.0307.86
4.3.110.0000.0237.86
4.3.100.0000.0207.86
4.3.90.0070.0307.86
4.3.80.0030.0377.86
4.3.70.0070.0307.86
4.3.60.0000.0337.86
4.3.50.0000.0277.86
4.3.40.0070.0477.86
4.3.30.0000.0277.86
4.3.20.0000.0237.86
4.3.10.0000.0277.86
4.3.00.0130.0237.86

preferences:
53.4 ms | 400 KiB | 5 Q