3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function m() { echo static::class; } } class B extends A {} $b = new B(); echo $b->m()."\n";

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.0030.00717.68
8.3.140.0110.00716.68
8.3.130.0040.00416.56
8.3.120.0090.00618.73
8.3.110.0120.00320.94
8.3.100.0090.00024.06
8.3.90.0030.00626.77
8.3.80.0090.00020.47
8.3.70.0140.00716.63
8.3.60.0070.01016.75
8.3.50.0210.00319.72
8.3.40.0000.01423.73
8.3.30.0070.00718.68
8.3.20.0050.00224.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.260.0120.00616.60
8.2.250.0060.00318.24
8.2.240.0030.00617.32
8.2.230.0000.00922.58
8.2.220.0030.00737.54
8.2.210.0080.00026.77
8.2.200.0070.00316.75
8.2.190.0120.00616.58
8.2.180.0070.01025.92
8.2.170.0060.00818.77
8.2.160.0110.00322.96
8.2.150.0000.00825.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00220.81
8.2.110.0060.00321.18
8.2.100.0080.00417.72
8.2.90.0030.00517.75
8.2.80.0040.00417.97
8.2.70.0070.00517.49
8.2.60.0100.00217.45
8.2.50.0070.00617.71
8.2.40.0040.00718.71
8.2.30.0110.00017.59
8.2.20.0060.00118.98
8.2.10.0030.00717.39
8.2.00.0060.00518.27
8.1.300.0190.00018.80
8.1.290.0040.00730.84
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00617.38
8.1.230.0030.00817.77
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00417.06
8.1.190.0090.00317.05
8.1.180.0090.00217.49
8.1.170.0040.00817.91
8.1.160.0080.00317.96
8.1.150.0120.00017.65
8.1.140.0050.00717.24
8.1.130.0030.00917.82
8.1.120.0070.00517.31
8.1.110.0080.00217.27
8.1.100.0020.01017.25
8.1.90.0120.00017.32
8.1.80.0070.00717.41
8.1.70.0090.00617.16
8.1.60.0100.00317.41
8.1.50.0060.00717.44
8.1.40.0050.00717.35
8.1.30.0070.00617.45
8.1.20.0130.00317.42
8.1.10.0120.00517.45
8.1.00.0120.00517.36
8.0.300.0040.00420.67
8.0.290.0030.00516.69
8.0.280.0100.00217.56
8.0.270.0080.00517.28
8.0.260.0080.00317.46
8.0.250.0030.00816.81
8.0.240.0070.00516.76
8.0.230.0080.00416.73
8.0.220.0040.00716.73
8.0.210.0080.00316.73
8.0.200.0040.00816.86
8.0.190.0130.00116.70
8.0.180.0110.00316.68
8.0.170.0070.00516.69
8.0.160.0110.00216.71
8.0.150.0080.00616.71
8.0.140.0080.00716.72
8.0.130.0120.00316.71
8.0.120.0140.00416.78
8.0.110.0140.00316.78
8.0.100.0120.00516.76
8.0.90.0080.00816.73
8.0.80.0140.00316.81
8.0.70.0100.00716.76
8.0.60.0140.00316.66
8.0.50.0120.00416.70
8.0.30.0090.00716.73
8.0.20.0120.00516.75
8.0.10.0110.00616.86
8.0.00.0110.00116.91
7.4.330.0010.00716.06
7.4.320.0100.00216.46
7.4.300.0040.00816.55
7.4.290.0080.00316.52
7.4.280.0110.00216.46
7.4.270.0100.00316.57
7.4.260.0130.00316.53
7.4.250.0160.00316.57
7.4.240.0130.00516.54
7.4.230.0140.00516.51
7.4.220.0100.00616.49
7.4.210.0110.00516.52
7.4.200.0110.00416.45
7.4.190.0130.00316.56
7.4.180.0120.00416.57
7.4.160.0100.00616.61
7.4.150.0140.00316.52
7.4.140.0140.00116.46
7.4.130.0050.01116.42
7.4.120.0140.00216.45
7.4.110.0100.00616.47
7.4.100.0120.00516.53
7.4.90.0140.00316.48
7.4.80.0120.00416.41
7.4.70.0110.00316.43
7.4.60.0130.00316.45
7.4.50.0140.00416.43
7.4.40.0130.00316.37
7.4.30.0100.00416.46
7.4.20.0140.00316.49
7.4.10.0150.00316.47
7.4.00.0150.00116.48
7.3.330.0140.00216.29
7.3.320.0130.00516.36
7.3.310.0130.00416.27
7.3.300.0110.00516.34
7.3.290.0120.00616.32
7.3.280.0180.00116.22
7.3.270.0120.00516.34
7.3.260.0140.00216.36
7.3.250.0130.00416.33
7.3.240.0110.00616.27
7.3.230.0090.01016.36
7.3.220.0160.00416.26
7.3.210.0130.00116.29
7.3.200.0120.00416.28
7.3.190.0150.00316.27
7.3.180.0130.00516.23
7.3.170.0110.00616.25
7.3.160.0120.00416.29
7.3.150.0130.00216.13
7.3.140.0110.00516.19
7.3.130.0130.00516.30

preferences:
16.07 ms | 403 KiB | 5 Q