3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("EMAIL", "test@example.com"); // Valid name echo EMAIL; // Displays "test@example.com" define("USE_head", true); if (USE_head) { } // Evaluates to true define("1CONSTANT", "some value"); // Invalid name ?>

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.0100.00716.50
8.3.50.0130.00822.12
8.3.40.0040.01418.63
8.3.30.0100.00319.09
8.3.20.0000.00720.18
8.3.10.0040.00423.66
8.3.00.0070.00020.77
8.2.180.0100.01316.38
8.2.170.0070.00722.96
8.2.160.0120.00322.13
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00022.27
8.2.110.0030.00622.16
8.2.100.0110.00017.59
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0030.00717.91
8.2.50.0040.00418.07
8.2.40.0000.00819.45
8.2.30.0040.00417.88
8.2.20.0040.00417.59
8.2.10.0060.00317.50
8.2.00.0000.01117.48
8.1.280.0080.00625.92
8.1.270.0040.00423.88
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0140.00723.71
8.1.230.0070.00419.22
8.1.220.0070.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0040.00422.07
8.1.150.0040.00418.57
8.1.140.0050.00317.30
8.1.130.0040.00417.75
8.1.120.0070.00017.30
8.1.110.0000.00717.39
8.1.100.0030.00317.32
8.1.90.0000.00717.43
8.1.80.0000.00717.29
8.1.70.0000.00717.25
8.1.60.0060.00317.41
8.1.50.0040.00417.50
8.1.40.0000.00717.28
8.1.30.0040.00417.59
8.1.20.0000.00717.57
8.1.10.0040.00417.43
8.1.00.0090.00317.39
8.0.300.0040.00418.77
8.0.290.0000.00717.04
8.0.280.0070.00018.39
8.0.270.0000.00717.20
8.0.260.0000.00716.71
8.0.250.0000.00616.88
8.0.240.0040.00416.87
8.0.230.0000.00716.95
8.0.220.0070.00016.71
8.0.210.0000.00716.73
8.0.200.0000.00616.76
8.0.190.0030.00516.81
8.0.180.0040.00416.78
8.0.170.0040.00416.77
8.0.160.0040.00416.71
8.0.150.0050.00316.81
8.0.140.0000.00716.76
8.0.130.0050.00013.18
8.0.120.0040.00416.77
8.0.110.0000.00716.78
8.0.100.0000.00816.89
8.0.90.0040.00416.89
8.0.80.0060.01016.79
8.0.70.0000.00716.68
8.0.60.0000.00716.79
8.0.50.0050.00316.89
8.0.30.0140.00516.97
8.0.20.0110.00817.40
8.0.10.0060.00316.84
8.0.00.0110.01016.80
7.4.330.0020.00215.01
7.4.320.0030.00316.51
7.4.300.0000.00716.42
7.4.290.0070.00016.44
7.4.280.0040.00416.52
7.4.270.0000.00616.45
7.4.260.0000.00716.45
7.4.250.0000.00716.39
7.4.240.0020.00516.55
7.4.230.0000.00716.32
7.4.220.0070.01016.49
7.4.210.0100.00416.45
7.4.200.0040.00416.55
7.4.190.0030.00316.68
7.4.160.0060.00916.34
7.4.150.0130.00717.40
7.4.140.0130.00517.86
7.4.130.0080.00816.51
7.4.120.0110.00616.45
7.4.110.0080.00816.23
7.4.100.0090.01216.48
7.4.90.0180.00616.43
7.4.80.0070.01016.54
7.4.70.0070.01016.32
7.4.60.0100.00616.33
7.4.50.0040.00416.59
7.4.40.0050.00722.77
7.4.30.0080.00816.52
7.4.00.0040.00714.96
7.3.330.0000.00613.00
7.3.320.0050.00013.05
7.3.310.0020.00516.22
7.3.300.0030.00416.00
7.3.290.0150.00416.22
7.3.280.0090.00716.15
7.3.270.0070.01017.40
7.3.260.0040.01316.25
7.3.250.0130.00816.42
7.3.240.0100.00716.48
7.3.230.0060.00916.39
7.3.210.0090.01216.19
7.3.200.0100.00719.39
7.3.190.0140.00716.58
7.3.180.0090.00916.21
7.3.170.0130.00316.27
7.3.160.0090.00616.23
7.3.120.0030.01014.82
7.2.330.0110.00816.41
7.2.320.0100.01316.29
7.2.310.0090.00916.30
7.2.300.0030.01316.36
7.2.290.0110.00616.53
7.2.00.0000.01119.21
7.1.100.0000.01018.05
7.1.70.0030.00516.75
7.1.60.0090.01619.22
7.1.50.0070.01316.52
7.1.00.0100.06722.44
7.0.200.0060.00316.73
7.0.140.0000.07321.95
7.0.80.0100.08719.90
7.0.70.0300.07720.01
7.0.60.0430.05719.96
7.0.50.0270.08320.29
7.0.40.0030.05020.05
7.0.30.0100.08320.10
7.0.20.0030.09020.00
7.0.10.0070.08320.09
7.0.00.0130.07320.07
5.6.280.0070.07021.07
5.6.230.0100.04720.67
5.6.220.0100.04720.61
5.6.210.0100.06020.61
5.6.200.0130.08021.10
5.6.190.0070.04321.01
5.6.180.0070.07321.05
5.6.170.0100.08321.01
5.6.160.0100.06720.95
5.6.150.0100.03721.04
5.6.140.0130.07721.04
5.6.130.0070.08720.95
5.6.120.0000.07021.15
5.6.110.0130.04321.03
5.6.100.0070.07721.09
5.6.90.0100.07721.14
5.6.80.0130.07720.51
5.6.70.0030.05320.36
5.6.60.0000.07320.42
5.6.50.0070.06320.48
5.6.40.0130.07020.48
5.6.30.0100.07020.36
5.6.20.0200.06320.39
5.6.10.0030.07720.46
5.6.00.0030.08020.50
5.5.370.0070.07720.41
5.5.360.0000.09020.34
5.5.350.0130.07720.41
5.5.340.0030.08720.91
5.5.330.0070.06020.86
5.5.320.0100.08320.83
5.5.310.0000.05720.88
5.5.300.0100.07020.91
5.5.290.0070.05720.63
5.5.280.0000.09020.90
5.5.270.0000.04720.75
5.5.260.0030.04720.91
5.5.250.0030.04720.53
5.5.240.0100.07320.29
5.5.230.0200.06320.23
5.5.220.0070.08020.13
5.5.210.0070.07720.21
5.5.200.0100.07320.27
5.5.190.0130.07720.03
5.5.180.0070.08320.23
5.5.160.0100.07020.07
5.5.150.0100.04720.26
5.5.140.0030.06320.07
5.5.130.0000.09020.20
5.5.120.0100.07320.22
5.5.110.0100.07020.13
5.5.100.0100.08020.08
5.5.90.0070.07020.15
5.5.80.0100.07320.05
5.5.70.0170.06719.96
5.5.60.0070.04320.05
5.5.50.0130.07020.09
5.5.40.0000.08720.14
5.5.30.0070.06320.08
5.5.20.0070.04320.04
5.5.10.0030.08019.95
5.5.00.0100.07320.09
5.4.450.0070.08019.42
5.4.440.0070.08019.51
5.4.430.0030.04019.22
5.4.420.0100.07319.35
5.4.410.0200.05019.41
5.4.400.0100.04018.79
5.4.390.0030.08319.10
5.4.380.0070.06719.05
5.4.370.0070.07018.90
5.4.360.0130.06318.96
5.4.350.0100.07719.03
5.4.340.0000.05019.16
5.4.320.0100.07719.10
5.4.310.0030.06319.15
5.4.300.0100.07319.09
5.4.290.0000.08019.14
5.4.280.0100.05019.14
5.4.270.0030.04719.03
5.4.260.0030.04019.12
5.4.250.0070.05719.14
5.4.240.0100.06319.02
5.4.230.0100.04018.99
5.4.220.0100.04719.07
5.4.210.0170.04319.13
5.4.200.0130.07319.09
5.4.190.0070.08018.95
5.4.180.0030.04719.05
5.4.170.0000.07719.13
5.4.160.0000.04719.05
5.4.150.0100.04319.21
5.4.140.0030.07316.28
5.4.130.0070.07316.38
5.4.120.0100.07316.27
5.4.110.0030.06316.33
5.4.100.0100.07016.25
5.4.90.0030.07016.38
5.4.80.0000.07016.31
5.4.70.0070.06716.20
5.4.60.0100.07016.18
5.4.50.0100.06316.31
5.4.40.0100.07016.47
5.4.30.0030.06016.31
5.4.20.0170.05716.41
5.4.10.0070.04016.32
5.4.00.0100.06715.86
5.3.290.0100.07014.64
5.3.280.0030.05014.45
5.3.270.0000.08314.55
5.3.260.0100.07014.46
5.3.250.0000.06714.51
5.3.240.0130.06714.60
5.3.230.0070.08014.53
5.3.220.0070.04314.54
5.3.210.0030.07714.54
5.3.200.0100.07314.52
5.3.190.0070.05014.39
5.3.180.0070.07714.50
5.3.170.0030.07714.54
5.3.160.0070.06314.53
5.3.150.0130.03014.52
5.3.140.0000.08014.56
5.3.130.0070.07014.45
5.3.120.0130.07314.40
5.3.110.0030.08314.42
5.3.100.0130.03013.87
5.3.90.0070.07313.89
5.3.80.0030.06313.96
5.3.70.0100.07313.87
5.3.60.0130.06313.99
5.3.50.0100.04013.79
5.3.40.0130.05013.79
5.3.30.0030.07013.82
5.3.20.0070.06013.67
5.3.10.0100.06713.64
5.3.00.0070.03713.59
5.2.170.0000.04011.77
5.2.160.0000.06011.77
5.2.150.0070.03311.77
5.2.140.0070.06011.77
5.2.130.0000.06011.77
5.2.120.0100.05311.77
5.2.110.0000.06311.77
5.2.100.0030.06011.77
5.2.90.0100.05311.77
5.2.80.0070.05011.77
5.2.70.0100.05711.77
5.2.60.0030.06311.77
5.2.50.0100.06011.77
5.2.40.0130.04711.77
5.2.30.0030.05711.77
5.2.20.0070.06311.77
5.2.10.0070.05711.77
5.2.00.0100.05311.77
5.1.60.0000.04011.77
5.1.50.0000.03311.77
5.1.40.0070.04711.77
5.1.30.0070.03011.77
5.1.20.0030.04711.77
5.1.10.0000.05011.77
5.1.00.0030.06011.77
5.0.50.0000.05011.77
5.0.40.0100.02311.77
5.0.30.0000.05311.77
5.0.20.0000.04311.77
5.0.10.0000.03011.77
5.0.00.0030.06311.77
4.4.90.0030.03311.77
4.4.80.0030.03711.77
4.4.70.0000.03011.77
4.4.60.0030.01711.77
4.4.50.0030.02711.77
4.4.40.0030.02711.77
4.4.30.0000.01711.77
4.4.20.0070.02711.77
4.4.10.0030.02311.77
4.4.00.0070.05011.77
4.3.110.0000.03311.77
4.3.100.0000.03711.77
4.3.90.0070.03011.77
4.3.80.0030.02711.77
4.3.70.0030.03311.77
4.3.60.0070.03011.77
4.3.50.0000.03711.77
4.3.40.0030.05011.77
4.3.30.0000.03011.77
4.3.20.0000.03711.77
4.3.10.0030.03011.77
4.3.00.0000.04011.77

preferences:
41.35 ms | 400 KiB | 5 Q