3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval(' namespace Foo { class Bar { const Baz = 42; } } '); const MyFoo = Foo\Bar::Baz; var_dump(MyFoo);

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.0070.01018.55
8.3.50.0120.00616.51
8.3.40.0070.00718.55
8.3.30.0070.00718.60
8.3.20.0040.00420.85
8.3.10.0050.00323.66
8.3.00.0040.00423.48
8.2.180.0100.00718.16
8.2.170.0090.00622.96
8.2.160.0110.00320.32
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00420.38
8.2.120.0040.00426.35
8.2.110.0060.00320.36
8.2.100.0040.00817.76
8.2.90.0040.00417.78
8.2.80.0060.00317.97
8.2.70.0000.00817.80
8.2.60.0040.00418.09
8.2.50.0030.00618.10
8.2.40.0080.00019.17
8.2.30.0040.00419.25
8.2.20.0000.00717.88
8.2.10.0030.00519.17
8.2.00.0000.00717.98
8.1.280.0070.00725.92
8.1.270.0040.00418.63
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00617.27
8.1.230.0120.00021.03
8.1.220.0000.00817.74
8.1.210.0000.00818.97
8.1.200.0040.00417.23
8.1.190.0050.00317.00
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0030.00518.83
8.1.150.0050.00218.89
8.1.140.0050.00318.79
8.1.130.0070.00020.06
8.1.120.0050.00217.30
8.1.110.0060.00317.38
8.1.100.0030.00617.39
8.1.90.0050.00317.29
8.1.80.0030.00617.39
8.1.70.0040.00417.38
8.1.60.0030.00617.54
8.1.50.0080.00017.52
8.1.40.0000.00817.52
8.1.30.0040.00417.58
8.1.20.0070.00017.57
8.1.10.0080.00017.37
8.1.00.0040.00417.38
8.0.300.0070.00019.68
8.0.290.0060.00316.75
8.0.280.0050.00318.44
8.0.270.0000.00817.18
8.0.260.0000.00720.14
8.0.250.0000.00716.99
8.0.240.0030.00316.85
8.0.230.0030.00316.94
8.0.220.0060.00316.93
8.0.210.0000.00816.80
8.0.200.0030.00316.98
8.0.190.0040.00416.96
8.0.180.0040.00416.92
8.0.170.0040.00416.96
8.0.160.0040.00416.91
8.0.150.0030.00516.86
8.0.140.0040.00416.74
8.0.130.0030.00313.34
8.0.120.0050.00316.76
8.0.110.0000.00716.73
8.0.100.0070.00016.77
8.0.90.0040.00317.01
8.0.80.0070.01116.86
8.0.70.0050.00216.83
8.0.60.0000.00716.79
8.0.50.0000.00716.84
8.0.30.0040.01817.14
8.0.20.0120.00617.40
8.0.10.0040.00416.94
8.0.00.0070.01216.70
7.4.330.0000.00415.55
7.4.320.0000.00616.61
7.4.300.0000.00616.64
7.4.290.0040.00416.63
7.4.280.0070.00016.54
7.4.270.0070.00016.61
7.4.260.0000.00716.59
7.4.250.0030.00316.57
7.4.240.0030.00316.52
7.4.230.0030.00316.46
7.4.220.0040.00416.54
7.4.210.0050.01416.66
7.4.200.0030.00316.52
7.4.160.0070.00916.44
7.4.140.0080.01217.86
7.4.130.0110.01116.57
7.4.120.0100.00716.33
7.4.110.0060.01216.50
7.4.100.0140.00316.61
7.4.90.0100.01416.32
7.4.80.0070.01319.39
7.4.70.0140.00316.57
7.4.60.0060.01016.50
7.4.50.0030.01316.43
7.4.40.0090.01316.52
7.4.00.0060.00614.84
7.3.330.0060.00013.25
7.3.320.0030.00313.11
7.3.310.0030.00316.23
7.3.300.0030.00316.30
7.3.290.0070.00016.20
7.3.280.0070.00816.23
7.3.260.0120.00816.38
7.3.240.0070.01216.38
7.3.230.0070.01116.32
7.3.210.0070.01016.21
7.3.200.0030.01316.38
7.3.190.0090.01416.21
7.3.180.0110.00416.60
7.3.170.0060.01316.28
7.3.160.0120.00416.32
7.3.120.0090.00314.95
7.3.110.0040.01114.95
7.3.100.0040.01214.76
7.3.90.0040.00814.49
7.3.80.0060.00314.46
7.3.70.0040.00714.72
7.3.60.0060.01114.70
7.3.50.0000.01214.49
7.3.40.0070.00314.59
7.3.30.0030.00914.33
7.3.20.0000.01316.53
7.3.10.0260.00515.57
7.3.00.0170.00815.61
7.2.330.0060.01316.66
7.2.320.0090.00916.48
7.2.310.0060.01016.68
7.2.300.0030.01316.57
7.2.290.0140.00316.32
7.2.240.0080.00415.13
7.2.230.0070.00715.09
7.2.220.0060.00914.76
7.2.210.0030.01315.04
7.2.200.0080.00814.79
7.2.190.0030.01014.70
7.2.180.0070.01014.92
7.2.170.0070.00714.98
7.2.160.0130.00014.76
7.2.150.0030.00916.65
7.2.140.0090.00616.70
7.2.130.0320.00215.95
7.2.120.0190.01115.98
7.2.110.0290.00915.80
7.2.100.0290.00815.83
7.2.90.0380.00315.86
7.2.80.0330.01015.98
7.2.70.0300.00515.80
7.2.60.0260.00615.65
7.2.50.0310.00415.94
7.2.40.0190.00715.77
7.2.30.0180.00815.81
7.2.20.0190.00515.91
7.2.10.0180.00615.63
7.2.00.0210.00816.01
7.1.330.0070.00415.85
7.1.320.0110.00415.73
7.1.310.0030.00715.68
7.1.300.0030.00915.69
7.1.290.0080.00415.71
7.1.280.0100.00315.59
7.1.270.0080.00315.70
7.1.260.0080.00315.32
7.1.250.0260.00614.63

preferences:
73.18 ms | 401 KiB | 5 Q