3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function run(): mixed { return null; } } class B extends A { public function run(): string { return 'test'; } } echo (new B())->run();

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.80.0090.00318.30
8.3.70.0090.01216.75
8.3.60.0120.00918.36
8.3.50.0150.00020.10
8.3.40.0070.00721.79
8.3.30.0070.00718.50
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.200.0030.00618.16
8.2.190.0100.01016.58
8.2.180.0110.00425.92
8.2.170.0150.00018.79
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.18
8.2.110.0060.00321.03
8.2.100.0100.00317.50
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0030.00817.61
8.2.60.0030.00517.80
8.2.50.0030.00518.07
8.2.40.0060.00319.82
8.2.30.0040.00417.97
8.2.20.0000.00720.36
8.2.10.0040.00418.03
8.2.00.0070.00019.09
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00919.13
8.1.230.0100.00017.54
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0070.00317.11
8.1.190.0060.00316.98
8.1.180.0060.00318.10
8.1.170.0030.00618.50
8.1.160.0000.00818.74
8.1.150.0000.00718.42
8.1.140.0040.00417.31
8.1.130.0000.00718.80
8.1.120.0040.00417.33
8.1.110.0030.00517.20
8.1.100.0000.00817.20
8.1.90.0070.00017.31
8.1.80.0060.00317.37
8.1.70.0070.00717.17
8.1.60.0060.00617.37
8.1.50.0040.01217.48
8.1.40.0120.00317.28
8.1.30.0140.00017.54
8.1.20.0110.00317.36
8.1.10.0060.00717.34
8.1.00.0070.01017.46
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0080.00016.80
8.0.260.0000.00618.54
8.0.250.0030.00316.89
8.0.240.0040.00416.93
8.0.230.0030.00316.87
8.0.220.0000.00716.62
8.0.210.0070.00216.59
8.0.200.0120.00316.72
8.0.190.0150.00016.64
8.0.180.0100.00516.77
8.0.170.0130.00316.82
8.0.160.0040.01116.57
8.0.150.0100.00516.63
8.0.140.0120.00316.71
8.0.130.0090.00616.80
8.0.120.0060.00916.70
8.0.110.0080.00816.57
8.0.100.0070.00716.73
8.0.90.0120.00616.77
8.0.80.0110.00516.73
8.0.70.0110.00516.54
8.0.60.0080.00816.70
8.0.50.0040.00616.54
8.0.30.0090.00516.79
8.0.20.0140.00016.80
8.0.10.0110.00016.81
7.4.330.0020.00215.55
7.4.320.0070.00016.32
7.4.300.0090.00016.46
7.4.290.0120.00316.33
7.4.280.0140.00416.36
7.4.270.0170.00016.36
7.4.260.0090.00916.37
7.4.250.0090.00916.36
7.4.240.0110.00616.51
7.4.230.0140.00316.24
7.4.220.0150.00016.25
7.4.210.0090.00616.34
7.4.200.0150.00016.37
7.4.190.0150.00016.54
7.4.180.0110.00416.41
7.4.160.0100.00316.30
7.4.150.0060.00716.26
7.4.140.0080.00416.34
7.4.130.0120.00016.13
7.4.120.0080.00316.16
7.4.110.0000.00916.16
7.4.100.0080.00316.25
7.4.90.0040.00716.10
7.4.80.0090.00016.05
7.4.70.0120.00016.17
7.4.60.0050.00516.25
7.4.50.0070.00316.08
7.4.40.0070.00316.15
7.4.30.0110.00016.30
7.4.20.0040.00416.35
7.4.10.0040.00416.34
7.4.00.0090.00016.36

preferences:
27.4 ms | 401 KiB | 5 Q