3v4l.org

run code in 300+ PHP versions simultaneously
<?php const ONE = 1; class foo { const TWO = ONE * 2; } echo foo::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.4.20.0150.00617.54
8.4.10.0030.00619.38
8.3.150.0120.00617.08
8.3.140.0100.00018.75
8.3.130.0040.00418.51
8.3.120.0080.00318.86
8.3.110.0100.00020.94
8.3.100.0000.00916.62
8.3.90.0150.00326.77
8.3.80.0030.00616.63
8.3.70.0130.00316.63
8.3.60.0080.00818.28
8.3.50.0190.00622.85
8.3.40.0110.00418.55
8.3.30.0070.00718.59
8.3.20.0040.00420.18
8.3.10.0040.00421.73
8.3.00.0080.00019.97
8.2.270.0070.01117.12
8.2.260.0110.00716.56
8.2.250.0090.00016.64
8.2.240.0040.00416.87
8.2.230.0000.00822.58
8.2.220.0120.00324.06
8.2.210.0090.00926.77
8.2.200.0060.00616.38
8.2.190.0070.01516.58
8.2.180.0120.00318.29
8.2.170.0100.01022.96
8.2.160.0100.00720.95
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00821.13
8.2.110.0060.00320.48
8.2.100.0110.00418.16
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0040.00417.91
8.2.50.0090.00018.10
8.2.40.0000.00722.20
8.2.30.0060.00319.18
8.2.20.0000.00717.68
8.2.10.0040.00417.84
8.2.00.0040.00417.87
8.1.310.0100.00716.48
8.1.300.0060.01217.68
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00423.92
8.1.260.0000.00826.35
8.1.250.0000.00928.09
8.1.240.0140.00019.01
8.1.230.0000.01120.46
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0040.00416.88
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0000.00722.05
8.1.150.0020.00520.57
8.1.140.0000.00719.46
8.1.130.0030.00317.74
8.1.120.0030.00317.40
8.1.110.0030.00617.34
8.1.100.0070.00017.29
8.1.90.0000.01017.29
8.1.80.0030.00517.38
8.1.70.0040.00417.45
8.1.60.0050.00317.37
8.1.50.0060.00317.49
8.1.40.0060.00317.45
8.1.30.0050.00317.58
8.1.20.0040.00417.60
8.1.10.0040.00417.36
8.1.00.0000.00817.32
8.0.300.0060.00319.09
8.0.290.0090.00016.58
8.0.280.0000.00718.36
8.0.270.0040.00417.12
8.0.260.0030.00317.05
8.0.250.0070.00016.85
8.0.240.0000.01116.94
8.0.230.0000.00716.86
8.0.220.0040.00416.69
8.0.210.0000.00716.66
8.0.200.0030.00316.87
8.0.190.0040.00416.93
8.0.180.0000.01016.73
8.0.170.0050.00216.86
8.0.160.0000.00716.83
8.0.150.0000.00816.67
8.0.140.0000.00716.67
8.0.130.0050.00013.18
8.0.120.0030.00516.86
8.0.110.0050.00216.69
8.0.100.0000.00716.86
8.0.90.0070.00016.65
8.0.80.0120.00916.74
8.0.70.0040.00416.79
8.0.60.0070.00016.77
8.0.50.0040.00416.69
8.0.30.0090.01016.67
8.0.20.0130.00717.40
8.0.10.0040.00416.76
8.0.00.0070.01316.98
7.4.330.0020.00215.08
7.4.320.0030.00316.38
7.4.300.0030.00316.51
7.4.290.0000.00716.44
7.4.280.0040.00316.32
7.4.270.0000.00716.50
7.4.260.0050.00316.43
7.4.250.0030.00316.44
7.4.240.0000.00716.43
7.4.230.0000.00716.36
7.4.220.0170.00416.39
7.4.210.0100.00816.39
7.4.200.0050.00216.46
7.4.160.0070.01016.42
7.4.150.0110.01117.40
7.4.140.0090.00917.86
7.4.130.0100.00816.39
7.4.120.0090.00816.49
7.4.110.0100.01016.46
7.4.100.0160.00016.57
7.4.90.0090.00916.24
7.4.80.0110.00619.39
7.4.70.0060.00916.51
7.4.60.0120.00616.50
7.4.50.0040.01216.52
7.4.40.0140.00616.42
7.4.30.0070.01016.54
7.4.00.0070.00814.88
7.3.330.0000.00613.06
7.3.320.0070.00013.05
7.3.310.0070.00016.08
7.3.300.0030.00316.09
7.3.290.0000.00616.24
7.3.280.0090.00716.22
7.3.270.0140.00317.40
7.3.260.0100.00716.42
7.3.250.0130.00916.39
7.3.240.0090.01116.37
7.3.230.0030.01516.39
7.3.210.0070.01016.50
7.3.200.0060.00916.40
7.3.190.0090.01416.36
7.3.180.0130.00316.13
7.3.170.0260.02316.30
7.3.160.0060.01016.24
7.3.120.0100.01014.45
7.3.110.0030.01014.74
7.3.100.0150.00314.97
7.3.90.0070.00614.66
7.3.80.0050.00514.70
7.3.70.0030.00714.72
7.3.60.0050.00614.48
7.3.50.0060.00914.82
7.3.40.0030.00714.54
7.3.30.0030.01414.66
7.3.20.0090.00916.49
7.3.10.0100.00716.31
7.3.00.0080.00816.58
7.2.330.0110.00616.37
7.2.320.0070.01016.62
7.2.310.0150.00616.72
7.2.300.0180.00416.68
7.2.290.0030.01616.43
7.2.250.0040.01515.14
7.2.240.0060.00914.77
7.2.230.0130.00714.89
7.2.220.0130.00614.77
7.2.210.0070.01015.16
7.2.200.0030.01215.13
7.2.190.0000.01514.81
7.2.180.0080.00815.03
7.2.170.0080.00414.88
7.2.60.0030.01116.64
7.2.50.0040.01216.76
7.1.330.0050.00815.49
7.1.320.0070.01015.70
7.1.310.0000.01815.81
7.1.300.0030.01015.39
7.1.290.0000.01215.55
7.1.280.0070.00715.32
7.1.270.0070.00715.69
7.1.260.0150.00315.70
7.1.200.0060.00615.18
7.1.70.0030.00316.93
7.1.60.0030.00919.75
7.1.00.0070.07322.31
7.0.200.0050.00316.86
7.0.90.0030.07019.97
7.0.80.0370.06319.88
7.0.70.0370.05019.91
7.0.60.0300.06720.06
7.0.50.0270.05720.23
7.0.40.0300.05320.36
7.0.30.0300.05320.33
7.0.20.0300.05720.36
7.0.10.0200.06320.33
7.0.00.0230.06720.36
5.6.230.0100.06020.64
5.6.220.0100.06720.47
5.6.210.0100.06020.74
5.6.200.0100.06721.08
5.6.190.0170.05321.07
5.6.180.0130.05721.14
5.6.170.0300.04021.02
5.6.160.0200.05321.09
5.6.150.0200.05021.14
5.6.140.0130.05721.08
5.6.130.0200.06021.07
5.6.120.0130.07021.18
5.6.110.0170.05721.08
5.6.100.0130.06020.94
5.6.90.0100.06320.99
5.6.80.0070.06020.58
5.6.70.0170.05320.46
5.6.60.0170.04720.45
5.6.50.0200.05320.46
5.6.40.0030.06320.46
5.6.30.0100.05720.44
5.6.20.0200.04720.52
5.6.10.0170.05020.43
5.6.00.0100.05720.44

preferences:
51.46 ms | 403 KiB | 5 Q