3v4l.org

run code in 300+ PHP versions simultaneously
<?php //define('CACHE', '123'); class test { const C = CACHE; function __construct() { echo self::C; } } new test(); ?>

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.0140.00016.25
8.3.50.0140.00522.05
8.3.40.0170.00318.79
8.3.30.0120.00318.51
8.3.20.0040.00420.04
8.3.10.0040.00423.61
8.3.00.0080.00019.27
8.2.180.0090.01316.88
8.2.170.0150.00022.96
8.2.160.0070.00720.38
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0090.00017.25
8.2.120.0090.00026.35
8.2.110.0040.00722.08
8.2.100.0070.00417.80
8.2.90.0080.00018.81
8.2.80.0060.00317.97
8.2.70.0070.00417.63
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0000.00719.16
8.2.30.0000.00720.49
8.2.20.0030.00617.63
8.2.10.0050.00217.89
8.2.00.0000.00817.92
8.1.280.0090.01225.92
8.1.270.0100.00023.91
8.1.260.0000.00828.09
8.1.250.0080.00028.09
8.1.240.0040.00422.61
8.1.230.0100.00017.66
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.57
8.1.180.0040.00418.10
8.1.170.0050.00318.52
8.1.160.0020.00521.93
8.1.150.0040.00418.69
8.1.140.0080.00019.43
8.1.130.0000.00717.52
8.1.120.0050.00317.29
8.1.110.0040.00317.24
8.1.100.0070.00017.28
8.1.90.0030.00717.25
8.1.80.0040.00417.18
8.1.70.0000.00717.35
8.1.60.0040.00417.37
8.1.50.0040.00417.33
8.1.40.0040.00417.35
8.1.30.0040.00417.43
8.1.20.0050.00217.49
8.1.10.0040.00417.44
8.1.00.0020.00517.38
8.0.300.0030.00518.77
8.0.290.0000.00716.63
8.0.280.0040.00418.24
8.0.270.0000.00717.10
8.0.260.0030.00318.47
8.0.250.0030.00316.89
8.0.240.0030.00316.96
8.0.230.0030.00416.90
8.0.220.0040.00416.75
8.0.210.0040.00416.89
8.0.200.0060.00016.93
8.0.190.0000.00816.96
8.0.180.0000.00716.89
8.0.170.0050.00316.79
8.0.160.0000.00716.94
8.0.150.0000.00716.80
8.0.140.0000.00716.77
8.0.130.0000.00613.26
8.0.120.0030.00616.82
8.0.110.0040.00416.89
8.0.100.0070.00016.77
8.0.90.0030.00316.88
8.0.80.0040.01116.87
8.0.70.0040.00416.94
8.0.60.0000.00716.73
8.0.50.0000.00716.89
8.0.30.0140.00316.87
8.0.20.0080.01017.40
8.0.10.0070.00017.00
8.0.00.0090.01016.66
7.4.330.0000.00616.81
7.4.320.0030.00316.55
7.4.300.0030.00316.51
7.4.290.0030.00316.57
7.4.280.0030.00616.31
7.4.270.0060.00016.47
7.4.260.0000.00816.54
7.4.250.0030.00516.29
7.4.240.0050.00316.44
7.4.230.0000.00816.34
7.4.220.0140.01116.45
7.4.210.0070.01016.47
7.4.200.0050.00316.50
7.4.160.0060.00916.43
7.4.150.0130.00517.40
7.4.140.0150.00817.86
7.4.130.0140.00516.51
7.4.120.0060.01116.43
7.4.110.0120.00416.55
7.4.100.0110.00716.52
7.4.90.0070.01016.24
7.4.80.0110.00719.39
7.4.70.0100.00716.36
7.4.60.0090.00616.55
7.4.50.0060.01016.40
7.4.40.0120.00616.41
7.4.30.0150.00316.46
7.4.00.0050.01014.78
7.3.330.0000.00513.31
7.3.320.0000.00513.32
7.3.310.0040.00416.18
7.3.300.0070.00016.21
7.3.290.0070.01116.29
7.3.280.0100.00816.30
7.3.270.0130.00317.40
7.3.260.0120.00616.27
7.3.250.0120.00616.40
7.3.240.0130.00516.36
7.3.230.0100.01016.39
7.3.210.0090.00916.33
7.3.200.0090.00616.36
7.3.190.0070.01416.35
7.3.180.0120.00416.45
7.3.170.0090.00616.43
7.3.160.0090.00916.24
7.3.120.0140.00014.81
7.3.110.0030.01014.96
7.3.100.0130.00314.61
7.3.90.0030.01014.79
7.3.80.0100.00614.61
7.3.70.0030.01014.87
7.3.60.0060.00914.49
7.3.50.0080.00814.75
7.3.40.0130.00014.49
7.3.30.0060.00614.81
7.3.20.0060.00916.56
7.3.10.0000.01416.62
7.3.00.0000.01316.73
7.2.330.0130.00316.35
7.2.320.0090.00916.40
7.2.310.0060.00916.57
7.2.300.0100.00616.77
7.2.290.0030.01316.33
7.2.250.0070.01015.00
7.2.240.0060.01314.96
7.2.230.0090.00915.13
7.2.220.0060.00914.67
7.2.210.0060.00914.94
7.2.200.0060.00915.11
7.2.190.0100.00614.82
7.2.180.0060.00614.95
7.2.170.0060.00815.08
7.2.60.0000.01516.86
7.2.00.0000.01219.17
7.1.330.0070.00715.27
7.1.320.0100.00715.89
7.1.310.0060.00615.54
7.1.300.0120.00315.77
7.1.290.0070.00715.28
7.1.280.0000.01415.79
7.1.270.0100.00315.61
7.1.260.0070.01015.65
7.1.200.0110.00015.50
7.1.100.0090.00617.89
7.1.70.0070.01017.00
7.1.60.0040.02219.36
7.1.50.0090.01616.61
7.1.00.0070.07322.57
7.0.200.0000.00916.41
7.0.100.0130.07020.00
7.0.90.0000.06719.93
7.0.80.0070.08719.81
7.0.70.0370.05319.82
7.0.60.0300.07720.02
7.0.50.0270.08020.18
7.0.40.0070.08320.07
7.0.30.0030.08720.10
7.0.20.0100.08020.01
7.0.10.0100.04720.03
7.0.00.0030.08320.04
5.6.280.0000.03720.99
5.6.250.0130.08020.46
5.6.240.0070.08020.53
5.6.230.0100.05320.56
5.6.220.0030.09020.44
5.6.210.0070.07320.56
5.6.200.0030.08721.09
5.6.190.0100.08321.04
5.6.180.0070.08021.11
5.6.170.0130.07020.95
5.6.160.0070.07721.06
5.6.150.0130.07321.08
5.6.140.0100.07021.02
5.6.130.0030.09020.97
5.6.120.0170.07721.04
5.6.110.0100.07321.00
5.6.100.0200.06721.02
5.6.90.0130.06320.91
5.6.80.0100.04020.48
5.6.70.0070.04720.31
5.6.60.0070.04720.54
5.6.50.0070.04720.43
5.6.40.0070.06020.36
5.6.30.0100.06020.48
5.6.20.0070.07320.42
5.6.10.0100.04720.31
5.6.00.0100.05720.38
5.5.380.0030.07320.32
5.5.370.0030.07320.40
5.5.360.0100.08020.36
5.5.350.0070.08720.39
5.5.340.0070.03720.93
5.5.330.0170.06720.83
5.5.320.0070.08720.91
5.5.310.0030.08720.88
5.5.300.0030.08020.85
5.5.290.0070.08720.86
5.5.280.0070.06020.89
5.5.270.0070.08020.86
5.5.260.0100.07720.90
5.5.250.0070.08020.67
5.5.240.0100.07320.29
5.5.230.0070.07320.26
5.5.220.0130.06720.02
5.5.210.0100.07020.18
5.5.200.0130.07320.21
5.5.190.0070.08019.97
5.5.180.0070.06320.22
5.5.160.0100.07320.17
5.5.150.0030.05720.21
5.5.140.0000.04320.20
5.5.130.0070.04720.18
5.5.120.0130.07020.13
5.5.110.0070.08319.98
5.5.100.0170.06320.07
5.5.90.0070.04020.15
5.5.80.0030.04319.94
5.5.70.0070.04720.10
5.5.60.0030.08020.08
5.5.50.0170.07019.96
5.5.40.0000.06020.05
5.5.30.0100.07720.07
5.5.20.0070.06720.11
5.5.10.0030.05019.96
5.5.00.0200.03320.02

preferences:
46.36 ms | 401 KiB | 5 Q