3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('CONSTANT', 1); define('_CONSTANT', 0); define('EMPTY',''); if ( !empty(constant('EMPTY')) ) { if (!((boolean) _CONSTANT)) { print "One"; } } else if (constant('CONSTANT') == 1) { print "Two"; }

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.0130.00318.31
8.3.50.0140.00821.98
8.3.40.0070.01118.75
8.3.30.0040.01118.93
8.3.20.0040.00420.34
8.3.10.0040.00422.02
8.3.00.0000.00819.38
8.2.180.0060.01216.32
8.2.170.0170.00022.96
8.2.160.0030.01020.49
8.2.150.0050.00224.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00722.19
8.2.110.0070.00419.25
8.2.100.0120.00017.66
8.2.90.0040.00419.16
8.2.80.0030.00517.97
8.2.70.0030.00617.38
8.2.60.0060.00317.91
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00717.88
8.2.20.0000.00717.61
8.2.10.0040.00417.92
8.2.00.0040.00417.59
8.1.280.0100.01025.92
8.1.270.0040.00422.26
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00420.93
8.1.230.0040.00817.42
8.1.220.0020.00517.74
8.1.210.0030.00518.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00918.66
8.1.160.0000.00722.07
8.1.150.0070.00018.82
8.1.140.0000.00717.43
8.1.130.0030.00317.64
8.1.120.0000.00717.45
8.1.110.0060.00317.28
8.1.100.0040.00417.38
8.1.90.0080.00017.34
8.1.80.0040.00417.40
8.1.70.0070.00017.41
8.1.60.0040.00417.39
8.1.50.0030.00517.46
8.1.40.0000.00717.47
8.1.30.0060.00317.52
8.1.20.0050.00317.46
8.1.10.0040.00417.33
8.1.00.0000.00717.45
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.26
8.0.270.0070.00017.20
8.0.260.0000.00617.11
8.0.250.0030.00516.83
8.0.240.0000.00616.99
8.0.230.0030.00316.80
8.0.220.0030.00616.70
8.0.210.0000.00716.72
8.0.200.0060.00016.87
8.0.190.0000.00716.87
8.0.180.0050.00316.80
8.0.170.0040.00416.92
8.0.160.0000.00716.80
8.0.150.0030.00316.86
8.0.140.0070.00016.71
8.0.130.0000.00613.34
8.0.120.0000.00816.87
8.0.110.0020.00516.70
8.0.100.0040.00416.86
8.0.90.0040.00416.89
8.0.80.0060.00816.87
8.0.70.0050.00516.63
8.0.60.0050.00216.71
8.0.50.0050.00216.64
8.0.30.0170.00617.28
8.0.20.0060.01417.40
8.0.10.0000.00716.93
8.0.00.0060.01316.75
7.4.330.0050.00015.11
7.4.320.0050.00316.39
7.4.300.0000.00616.29
7.4.290.0040.00416.51
7.4.280.0030.00516.53
7.4.270.0070.00016.34
7.4.260.0070.00016.36
7.4.250.0030.00316.42
7.4.240.0050.00216.46
7.4.230.0050.00216.33
7.4.220.0130.00416.31
7.4.210.0100.01016.43
7.4.200.0000.00716.59
7.4.160.0120.00316.33
7.4.150.0110.01217.40
7.4.140.0080.01217.86
7.4.130.0110.00616.37
7.4.120.0050.01216.41
7.4.110.0170.00016.70
7.4.100.0130.00316.48
7.4.90.0090.00916.49
7.4.80.0030.01519.39
7.4.70.0090.00916.43
7.4.60.0100.00616.53
7.4.50.0020.00216.42
7.4.40.0000.01816.55
7.4.30.0030.01416.47
7.4.00.0100.00314.79
7.3.330.0030.00313.09
7.3.320.0050.00012.96
7.3.310.0030.00316.27
7.3.300.0000.00716.19
7.3.290.0070.00716.25
7.3.280.0050.01116.19
7.3.270.0100.01317.40
7.3.260.0090.00916.21
7.3.250.0090.01216.36
7.3.240.0070.01416.48
7.3.230.0030.02016.51
7.3.210.0140.00316.46
7.3.200.0120.00919.39
7.3.190.0040.01216.45
7.3.180.0060.00916.20
7.3.170.0100.01316.34
7.3.160.0080.00816.26
7.3.10.0060.00616.32
7.3.00.0040.00816.53
7.2.330.0130.00416.58
7.2.320.0120.00616.36
7.2.310.0060.01516.47
7.2.300.0040.01216.49
7.2.290.0160.00316.40
7.2.130.0050.00516.91
7.2.120.0060.00616.93
7.2.110.0040.00716.94
7.2.100.0000.01116.58
7.2.90.0040.00816.98
7.2.80.0060.00616.73
7.2.70.0000.01117.09
7.2.60.0060.00716.89
7.2.50.0030.00716.71
7.2.40.0030.00616.73
7.2.30.0090.00616.97
7.2.20.0030.00616.96
7.2.10.0070.00316.95
7.2.00.0070.00418.15
7.1.250.0050.00515.61
7.1.200.0100.00315.66
7.1.100.0030.00618.16
7.1.70.0070.00016.88
7.1.60.0100.01419.32
7.1.50.0130.01016.79
7.1.00.0070.07022.51
7.0.200.0050.00516.69
7.0.140.0070.06722.09
7.0.70.0130.05721.93
7.0.60.0070.05021.76
7.0.50.0030.07322.06
7.0.40.0070.07720.09
7.0.30.0030.06320.08
7.0.20.0030.09020.12
7.0.10.0000.06320.18
7.0.00.0070.07020.14
5.6.280.0030.07320.78
5.6.220.0070.05020.61
5.6.210.0030.06320.77
5.6.200.0030.08320.96
5.6.190.0030.08721.02
5.6.180.0070.07721.04
5.6.170.0170.07721.09
5.6.160.0070.07721.00
5.6.150.0030.08720.91
5.6.140.0030.05321.03
5.6.130.0030.08021.04
5.6.120.0070.07321.03
5.6.110.0030.07021.10
5.6.100.0100.05021.05
5.6.90.0100.07020.98
5.6.80.0000.08020.30
5.6.70.0070.07720.41
5.6.60.0070.07020.36
5.6.50.0070.04320.49
5.6.40.0130.05020.25
5.6.30.0030.07720.41
5.6.20.0070.08020.30
5.6.10.0030.08020.47
5.6.00.0100.06720.34
5.5.360.0070.08320.35
5.5.350.0100.06020.48
5.5.340.0030.08020.87
5.5.330.0070.05020.64
5.5.320.0000.05020.72
5.5.310.0170.07320.79
5.5.300.0200.06720.89
5.5.290.0070.08320.84
5.5.280.0030.04720.81
5.5.270.0000.06320.63
5.5.260.0070.07720.89
5.5.250.0070.08020.65
5.5.240.0030.06020.18
5.5.230.0030.07320.14
5.5.220.0000.05720.16
5.5.210.0070.04720.18
5.5.200.0000.06020.07
5.5.190.0070.08320.25
5.5.180.0130.06720.27
5.5.160.0100.05320.07
5.5.150.0000.07320.18
5.5.140.0070.08020.26
5.5.130.0000.08720.09
5.5.120.0100.07020.18
5.5.110.0030.07320.27
5.5.100.0070.07720.06
5.5.90.0070.07720.09
5.5.80.0000.08020.08
5.5.70.0070.07720.13
5.5.60.0070.06319.93
5.5.50.0100.04020.06
5.5.40.0000.05720.14
5.5.30.0070.08020.07
5.5.20.0100.07020.07
5.5.10.0130.04719.96
5.5.00.0000.07720.05
5.4.450.0000.05719.41
5.4.440.0030.08319.55
5.4.430.0000.08719.39
5.4.420.0000.08319.42
5.4.410.0030.07719.41
5.4.400.0130.04718.93
5.4.390.0030.06019.21
5.4.380.0100.06319.11
5.4.370.0070.04319.21
5.4.360.0070.04318.95
5.4.350.0000.08318.88
5.4.340.0030.07719.13
5.4.320.0070.07719.03
5.4.310.0000.07718.96
5.4.300.0100.05019.02
5.4.290.0030.08018.95
5.4.280.0070.05319.04
5.4.270.0000.07319.00
5.4.260.0070.06019.04
5.4.250.0000.07018.77
5.4.240.0030.06319.04
5.4.230.0030.05718.94
5.4.220.0070.03719.00
5.4.210.0130.06319.00
5.4.200.0070.07318.78
5.4.190.0000.04719.07
5.4.180.0100.06719.17
5.4.170.0030.06019.10
5.4.160.0030.05019.02
5.4.150.0000.06319.00
5.4.140.0070.06716.07
5.4.130.0000.04016.23
5.4.120.0030.04016.27
5.4.110.0030.07316.32
5.4.100.0100.07016.40
5.4.90.0070.07316.41
5.4.80.0000.05716.31
5.4.70.0070.04016.33
5.4.60.0030.07316.26
5.4.50.0070.07016.17
5.4.40.0000.06716.42
5.4.30.0030.07316.33
5.4.20.0070.04716.29
5.4.10.0070.07316.16
5.4.00.0070.05715.71
5.3.290.0030.07314.64
5.3.280.0070.05014.61
5.3.270.0030.07714.54
5.3.260.0100.07014.60
5.3.250.0070.07314.60
5.3.240.0100.07014.61
5.3.230.0000.04014.55
5.3.220.0030.07014.52
5.3.210.0030.07014.43
5.3.200.0070.05314.51
5.3.190.0100.05714.41
5.3.180.0000.07714.42
5.3.170.0000.05014.47
5.3.160.0030.07314.41
5.3.150.0000.07714.55
5.3.140.0070.07314.52
5.3.130.0030.07714.55
5.3.120.0030.05714.48
5.3.110.0030.07314.50
5.3.100.0100.07014.01
5.3.90.0070.05014.01
5.3.80.0000.07713.87
5.3.70.0000.06013.96
5.3.60.0030.07713.76
5.3.50.0030.07713.93
5.3.40.0030.04013.80
5.3.30.0100.07013.77
5.3.20.0070.05313.54
5.3.10.0070.07013.63
5.3.00.0000.08013.63
5.2.170.0070.06012.36
5.2.160.0030.04012.36
5.2.150.0030.03712.36
5.2.140.0000.06012.36
5.2.130.0100.03712.36
5.2.120.0030.06312.36
5.2.110.0000.06712.36
5.2.100.0070.05712.36
5.2.90.0000.04012.36
5.2.80.0000.03312.36
5.2.70.0000.05012.36
5.2.60.0000.05012.36
5.2.50.0000.06712.36
5.2.40.0000.04312.36
5.2.30.0100.03712.36
5.2.20.0030.06312.36
5.2.10.0070.05312.36
5.2.00.0000.03712.36
5.1.60.0100.04712.36
5.1.50.0000.03012.36
5.1.40.0000.02712.36
5.1.30.0030.02312.36
5.1.20.0070.02312.36
5.1.10.0030.02312.36
5.1.00.0030.02312.36
5.0.50.0000.02012.36
5.0.40.0000.02312.36
5.0.30.0000.03312.36
5.0.20.0030.02012.36
5.0.10.0030.01712.36
5.0.00.0000.03012.36
4.4.90.0030.02312.36
4.4.80.0000.03712.36
4.4.70.0000.03712.36
4.4.60.0000.03712.36
4.4.50.0030.03312.36
4.4.40.0030.02312.36
4.4.30.0000.02012.36
4.4.20.0000.01712.36
4.4.10.0000.01712.36
4.4.00.0000.02312.36
4.3.110.0000.01712.36
4.3.100.0000.01312.36
4.3.90.0000.01712.36
4.3.80.0000.02312.36
4.3.70.0000.01712.36
4.3.60.0000.01312.36
4.3.50.0000.01312.36
4.3.40.0030.02312.36
4.3.30.0000.01712.36
4.3.20.0030.01312.36
4.3.10.0000.01712.36
4.3.00.0030.02012.36

preferences:
51.38 ms | 401 KiB | 5 Q