3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { $a = 1; } namespace B { $b = 2; } namespace { echo $a . PHP_EOL; echo $b . PHP_EOL; }

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.10.0000.00923.82
8.3.140.0080.00016.56
8.3.130.0090.00018.34
8.3.120.0050.00320.58
8.3.110.0090.00016.38
8.3.100.0050.00324.06
8.3.90.0130.00726.77
8.3.80.0080.00016.63
8.3.70.0070.00718.15
8.3.60.0000.02216.50
8.3.50.0040.01220.16
8.3.40.0060.00920.04
8.3.30.0110.00418.42
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.260.0070.01116.39
8.2.250.0090.00616.72
8.2.240.0030.00618.96
8.2.230.0090.00020.94
8.2.220.0060.01237.54
8.2.210.0030.00526.77
8.2.200.0040.00418.16
8.2.190.0090.00616.58
8.2.180.0170.00325.92
8.2.170.0140.00418.96
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00820.93
8.2.110.0040.00420.47
8.2.100.0030.00917.78
8.2.90.0090.00019.07
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0030.00518.10
8.2.40.0100.00021.84
8.2.30.0070.00018.11
8.2.20.0000.00720.59
8.2.10.0040.00418.11
8.2.00.0030.00419.10
8.1.300.0090.00920.06
8.1.290.0000.00830.84
8.1.280.0100.00325.92
8.1.270.0140.00024.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0080.00322.63
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0000.00817.11
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0070.00022.13
8.1.150.0000.00718.56
8.1.140.0070.00017.41
8.1.130.0150.00017.37
8.1.120.0110.00417.46
8.1.110.0140.00317.43
8.1.100.0130.00317.44
8.1.90.0120.00417.48
8.1.80.0120.00317.44
8.1.70.0110.00517.31
8.1.60.0080.00817.49
8.1.50.0170.00017.55
8.1.40.0140.00517.61
8.1.30.0150.00317.48
8.1.20.0160.00317.49
8.1.10.0060.01217.50
8.1.00.0140.00417.34
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0080.00018.34
8.0.270.0070.00017.35
8.0.260.0090.00516.71
8.0.250.0070.00716.78
8.0.240.0090.00616.77
8.0.230.0100.00516.82
8.0.220.0130.00316.70
8.0.210.0120.00416.76
8.0.200.0170.00016.72
8.0.190.0140.00016.80
8.0.180.0120.00216.70
8.0.170.0080.00816.88
8.0.160.0110.00416.77
8.0.150.0140.00016.81
8.0.140.0120.00316.80
8.0.130.0090.00916.83
8.0.120.0130.00316.70
8.0.110.0070.00716.79
8.0.100.0120.00216.66
8.0.90.0130.00316.79
8.0.80.0170.00016.70
8.0.70.0090.00616.79
8.0.60.0090.00516.78
8.0.50.0070.01116.67
8.0.30.0100.00516.84
8.0.20.0070.01016.77
8.0.10.0080.00816.81
7.4.330.0090.00415.88
7.4.320.0110.00616.41
7.4.300.0130.00316.27
7.4.290.0070.00016.40
7.4.280.0100.00716.38
7.4.270.0120.00616.34
7.4.260.0100.00516.32
7.4.250.0160.00316.26
7.4.240.0100.00016.36
7.4.230.0080.00016.39
7.4.220.0080.00316.27
7.4.210.0040.01116.42
7.4.200.0040.00416.27
7.4.190.0080.00416.40
7.4.180.0100.00516.33
7.4.160.0120.00416.50
7.4.150.0080.00816.38
7.4.140.0120.00316.23
7.4.130.0120.00416.43
7.4.120.0080.00816.26
7.4.110.0080.00816.21
7.4.100.0120.00316.38
7.4.90.0110.00416.25
7.4.80.0110.00516.21
7.4.70.0060.00916.32
7.4.60.0110.00316.43
7.4.50.0130.00316.34
7.4.40.0080.00816.38
7.4.30.0090.00616.18
7.4.20.0070.00716.20
7.4.10.0040.01316.34
7.4.00.0110.00516.25

preferences:
55.43 ms | 403 KiB | 5 Q