3v4l.org

run code in 300+ PHP versions simultaneously
<?php $anonymous = new class { public function echoMsg(): void { echo 'Hello World' . PHP_EOL; } }; class ExtendAnonymous extends $anonymous { }

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.2.110.0150.00622.23
8.2.100.0110.01119.99
8.2.90.0240.01218.75
8.2.80.0200.00518.60
8.2.70.0130.00718.61
8.2.60.0200.00518.57
8.2.50.0110.00119.91
8.2.40.0090.00418.79
8.2.30.0130.00318.63
8.2.20.0190.00818.84
8.2.10.0140.00718.55
8.2.00.0160.00718.95
8.1.240.0140.00918.27
8.1.230.0150.00518.46
8.1.220.0080.01118.20
8.1.210.0120.00519.79
8.1.200.0160.00518.38
8.1.190.0170.00519.63
8.1.180.0150.00618.09
8.1.170.0140.00519.23
8.1.160.0080.00818.46
8.1.150.0070.00521.28
8.1.140.0190.00318.23
8.1.130.0130.00718.39
8.1.120.0100.00218.51
8.1.110.0120.00219.54
8.1.100.0090.00818.37
8.1.90.0090.00518.43
8.1.80.0080.00519.39
8.1.70.0060.00618.50
8.1.60.0230.00118.45
8.1.50.0140.00418.43
8.1.40.0120.00818.60
8.1.30.0070.00718.81
8.1.20.0180.00018.56
8.1.10.0110.00318.50
8.1.00.0170.00018.50
8.0.300.0130.00317.78
8.0.290.0100.00617.75
8.0.280.0130.00117.79
8.0.270.0110.00317.77
8.0.260.0100.00218.35
8.0.250.0130.00417.68
8.0.240.0090.00417.78
8.0.230.0070.00818.12
8.0.220.0100.00417.85
8.0.210.0160.00317.82
8.0.200.0110.00717.76
8.0.190.0090.00418.20
8.0.180.0080.00617.75
8.0.170.0110.00317.75
8.0.160.0130.00117.89
8.0.150.0090.00617.70
8.0.140.0170.00417.81
8.0.130.0200.00218.05
8.0.120.0130.00817.70
8.0.110.0110.00618.36
8.0.100.0150.00217.80
8.0.90.0100.00417.83
8.0.80.0130.00217.64
8.0.70.0130.00117.67
8.0.60.0090.00618.01
8.0.50.0140.00817.71
8.0.30.0120.00618.11
8.0.20.0190.00417.89
8.0.10.0180.00517.84
8.0.00.0060.00822.47
7.4.330.0140.00316.30
7.4.320.0180.00617.31
7.4.300.0070.00718.99
7.4.290.0090.00418.15
7.4.280.0140.00817.35
7.4.270.0060.00719.16
7.4.260.0120.00917.26
7.4.250.0090.00717.37
7.4.240.0130.00517.32
7.4.230.0170.00317.24
7.4.220.0090.00518.22
7.4.210.0070.00717.32
7.4.200.0070.00118.24
7.4.190.0100.00917.27
7.4.180.0110.00717.45
7.4.160.0100.00218.30
7.4.150.0060.00219.16
7.4.140.0060.00218.24
7.4.130.0120.00317.04
7.4.120.0070.00517.30
7.4.110.0090.00717.18
7.4.100.0170.00018.32
7.4.90.0180.00417.92
7.4.80.0130.00317.13
7.4.70.0170.00517.03
7.4.60.0190.00717.14
7.4.50.0230.00716.93
7.4.40.0310.00317.09
7.4.30.0180.00616.92
7.4.20.0220.00717.00
7.4.10.0170.00517.15
7.4.00.0090.00518.15
7.3.330.0070.00717.36
7.3.320.0200.00517.06
7.3.310.0220.00617.09
7.3.300.0150.00917.24
7.3.290.0220.00317.88
7.3.280.0220.00317.19
7.3.270.0200.00316.95
7.3.260.0190.00316.96
7.3.250.0200.00618.40
7.3.240.0210.00416.87
7.3.230.0200.00516.94
7.3.220.0200.00717.12
7.3.210.0170.01017.07
7.3.200.0180.00116.95
7.3.190.0150.00916.71
7.3.180.0240.00217.04
7.3.170.0200.00717.05
7.3.160.0180.00717.09
7.3.150.0170.00917.08
7.3.140.0230.00317.02
7.3.130.0180.01017.02
7.3.120.0210.00416.82
7.3.110.0250.00217.76
7.3.100.0200.00616.83
7.3.90.0200.00616.97
7.3.80.0240.00116.98
7.3.70.0220.00417.02
7.3.60.0200.00617.07
7.3.50.0170.00817.03
7.3.40.0210.00517.24
7.3.30.0210.00517.00
7.3.20.0240.00218.97
7.3.10.0250.00118.79
7.3.00.0040.00919.03
7.2.340.0120.00517.03
7.2.330.0200.00617.01
7.2.320.0210.00516.98
7.2.310.0190.00517.15
7.2.300.0160.00617.07
7.2.290.0200.00617.06
7.2.280.0210.00517.20
7.2.270.0190.00717.05
7.2.260.0230.00118.02
7.2.250.0140.00217.04
7.2.240.0170.00817.02
7.2.230.0150.00816.95
7.2.220.0200.00217.12
7.2.210.0190.00316.99
7.2.200.0150.00918.07
7.2.190.0200.00517.21
7.2.180.0240.00217.19
7.2.170.0230.00217.32
7.2.160.0210.00417.25
7.2.150.0170.00821.00
7.2.140.0240.00519.13
7.2.130.0200.00619.22
7.2.120.0190.00819.01
7.2.110.0180.00719.15
7.2.100.0230.00619.21
7.2.90.0180.00819.21
7.2.80.0180.00718.97
7.2.70.0210.00418.92
7.2.60.0180.00718.97
7.2.50.0210.00518.99
7.2.40.0230.00319.10
7.2.30.0240.00319.14
7.2.20.0240.00419.09
7.2.10.0180.00620.40
7.2.00.0090.00519.18
7.1.330.0020.00718.13
7.1.320.0140.00018.04
7.1.310.0110.00317.95
7.1.300.0100.00518.00
7.1.290.0130.00217.99
7.1.280.0150.00517.76
7.1.270.0120.00317.96
7.1.260.0150.00117.90
7.1.250.0170.00317.87
7.1.240.0100.00717.79
7.1.230.0170.00518.05
7.1.220.0110.00417.91
7.1.210.0160.00217.85
7.1.200.0130.00818.02
7.1.190.0150.00117.90
7.1.180.0100.00417.79
7.1.170.0120.00218.95
7.1.160.0120.00517.78
7.1.150.0160.00217.76
7.1.140.0150.00217.85
7.1.130.0130.00217.79
7.1.120.0110.00617.63
7.1.110.0130.00717.76
7.1.100.0120.00418.08
7.1.90.0120.00317.95
7.1.80.0100.00517.75
7.1.70.0150.00717.65
7.1.60.0190.00417.85
7.1.50.0110.00418.10
7.1.40.0110.00517.90
7.1.30.0140.00117.97
7.1.20.0110.00417.87
7.1.10.0140.00317.78
7.1.00.0180.00217.83
7.0.330.0160.00917.64
7.0.320.0220.00417.59
7.0.310.0210.00317.71
7.0.300.0190.00317.68
7.0.290.0160.00517.48
7.0.280.0160.00517.90
7.0.270.0250.00817.53
7.0.260.0260.00217.71
7.0.250.0180.00917.96
7.0.240.0210.00617.88
7.0.230.0190.00117.88
7.0.220.0100.01017.60
7.0.210.0210.00219.06
7.0.200.0190.00417.73
7.0.190.0150.00817.88
7.0.180.0150.00817.69
7.0.170.0150.00917.74
7.0.160.0190.00517.83
7.0.150.0170.00517.85
7.0.140.0170.00617.61
7.0.130.0190.00317.87
7.0.120.0090.01317.87
7.0.110.0200.00317.87
7.0.100.0220.00117.68
7.0.90.0130.00917.68
7.0.80.0180.00617.40
7.0.70.0160.00717.67
7.0.60.0150.00717.73
7.0.50.0180.00417.65
7.0.40.0150.00917.79
7.0.30.0120.01117.81
7.0.20.0150.00817.51
7.0.10.0190.00417.75
7.0.00.0170.00517.35
5.6.400.0170.00316.66
5.6.390.0250.00216.34
5.6.380.0230.00516.50
5.6.370.0200.00616.33
5.6.360.0230.00316.41
5.6.350.0200.00316.46
5.6.340.0160.00216.59
5.6.330.0040.00816.53
5.6.320.0070.00416.50
5.6.310.0080.00216.47
5.6.300.0070.00616.43
5.6.290.0090.00316.52
5.6.280.0170.00316.57
5.6.270.0120.00216.49
5.6.260.0150.00516.54
5.6.250.0100.00316.65
5.6.240.0090.00416.61
5.6.230.0060.00216.40
5.6.220.0100.00416.48
5.6.210.0110.00916.55
5.6.200.0170.00616.78
5.6.190.0130.00216.64
5.6.180.0060.00816.50
5.6.170.0060.00516.63
5.6.160.0130.00516.73
5.6.150.0100.00716.77
5.6.140.0110.00316.67
5.6.130.0130.00516.59
5.6.120.0120.00716.63
5.6.110.0170.00016.38
5.6.100.0110.00316.57
5.6.90.0100.00116.49
5.6.80.0050.00816.62
5.6.70.0090.00716.64
5.6.60.0020.01016.56
5.6.50.0040.00716.45
5.6.40.0100.00316.54
5.6.30.0060.00216.52
5.6.20.0090.00416.48
5.6.10.0060.00216.59
5.6.00.0180.00216.52
5.5.380.0160.00716.59
5.5.370.0180.00316.51
5.5.360.0180.00616.51
5.5.350.0200.00416.42
5.5.340.0210.00316.42
5.5.330.0190.00516.39
5.5.320.0200.00316.45
5.5.310.0200.00316.36
5.5.300.0150.00616.53
5.5.290.0120.00716.55
5.5.280.0160.00316.42
5.5.270.0100.00616.38
5.5.260.0160.00716.45
5.5.250.0160.00516.48
5.5.240.0220.00216.58
5.5.230.0170.00516.46
5.5.220.0120.01016.45
5.5.210.0160.00716.62
5.5.200.0220.00016.44
5.5.190.0080.01216.41
5.5.180.0220.00316.35
5.5.170.0140.00416.30
5.5.160.0140.00816.45
5.5.150.0160.00416.30
5.5.140.0160.00416.40
5.5.130.0070.00416.34
5.5.120.0060.00516.36
5.5.110.0160.00516.37
5.5.100.0120.00616.48
5.5.90.0090.00516.55
5.5.80.0110.00316.59
5.5.70.0100.00116.51
5.5.60.0070.00716.42
5.5.50.0080.00316.57
5.5.40.0120.00516.45
5.5.30.0110.00217.01
5.5.20.0090.00216.49
5.5.10.0070.00716.46
5.5.00.0070.00716.50
5.4.450.0060.00316.30
5.4.440.0150.00216.30
5.4.430.0080.00116.30
5.4.420.0070.00416.30
5.4.410.0080.00216.30
5.4.400.0020.00716.30
5.4.390.0120.00616.30
5.4.380.0080.00216.30
5.4.370.0060.00416.30
5.4.360.0090.00316.30
5.4.350.0030.00516.30
5.4.340.0060.00416.30
5.4.330.0050.00416.30
5.4.320.0050.00716.30
5.4.310.0050.00516.30
5.4.300.0090.00316.30
5.4.290.0120.00416.30
5.4.280.0020.01016.30
5.4.270.0090.00216.30
5.4.260.0040.00816.30
5.4.250.0100.00216.30
5.4.240.0060.00216.30
5.4.230.0110.00016.30
5.4.220.0020.00616.30
5.4.210.0040.00216.30
5.4.200.0110.00316.30
5.4.190.0040.00516.30
5.4.180.0070.00216.30
5.4.170.0080.00216.30
5.4.160.0080.00316.30
5.4.150.0120.00416.30
5.4.140.0080.00216.30
5.4.130.0050.00516.30
5.4.120.0060.00316.30
5.4.110.0040.00516.30
5.4.100.0040.00516.30
5.4.90.0090.00016.30
5.4.80.0030.00616.30
5.4.70.0080.00216.30
5.4.60.0030.00616.30
5.4.50.0080.00616.30
5.4.40.0020.00416.30
5.4.30.0040.00116.30
5.4.20.0030.00616.30
5.4.10.0050.00416.30
5.4.00.0100.00416.30
5.3.290.0060.00016.30
5.3.280.0020.00516.30
5.3.270.0070.00016.30
5.3.260.0030.00516.30
5.3.250.0050.00016.30
5.3.240.0060.00216.30
5.3.230.0050.00316.30
5.3.220.0040.00416.30
5.3.210.0020.00416.30
5.3.200.0090.00416.30
5.3.190.0000.00516.30
5.3.180.0000.00716.30
5.3.170.0040.00216.30
5.3.160.0040.00216.30
5.3.150.0060.00316.30
5.3.140.0060.00316.30
5.3.130.0080.00316.30
5.3.120.0090.00216.30
5.3.110.0010.00916.30
5.3.100.0050.00516.30
5.3.90.0060.00316.30
5.3.80.0050.00516.30
5.3.70.0080.00216.30
5.3.60.0080.00116.30
5.3.50.0070.00216.30
5.3.40.0030.00616.30
5.3.30.0050.00516.30
5.3.20.0040.00516.30
5.3.10.0070.00116.30
5.3.00.0120.00316.30
5.2.170.0050.00316.30
5.2.160.0070.00216.30
5.2.150.0040.00416.30
5.2.140.0080.00016.30
5.2.130.0030.00616.30
5.2.120.0070.00216.30
5.2.110.0060.00216.30
5.2.100.0030.00516.30
5.2.90.0070.00316.30
5.2.80.0040.00416.30
5.2.70.0070.00116.30
5.2.60.0050.00416.30
5.2.50.0060.00316.30
5.2.40.0060.00216.30
5.2.30.0080.00416.30
5.2.20.0100.00216.30
5.2.10.0060.00616.30
5.2.00.0000.00816.30
5.1.60.0030.00416.30
5.1.50.0040.00316.30
5.1.40.0060.00216.30
5.1.30.0080.00016.30
5.1.20.0080.00116.30
5.1.10.0060.00216.30
5.1.00.0070.00516.30
5.0.50.0070.00116.30
5.0.40.0020.00516.30
5.0.30.0050.00216.30
5.0.20.0070.00016.30
5.0.10.0020.00516.30
5.0.00.0040.00316.30
4.4.90.0010.00216.30
4.4.80.0050.00016.30
4.4.70.0020.00116.30
4.4.60.0030.00016.30
4.4.50.0040.00016.30
4.4.40.0000.00416.30
4.4.30.0010.00216.30
4.4.20.0040.00016.30
4.4.10.0040.00016.30
4.4.00.0020.00116.30
4.3.110.0010.00216.30
4.3.100.0020.00116.30
4.3.90.0020.00116.30
4.3.80.0030.00216.30
4.3.70.0010.00216.30
4.3.60.0030.00016.30
4.3.50.0030.00016.30
4.3.40.0000.00316.30
4.3.30.0020.00116.30
4.3.20.0030.00016.30
4.3.10.0030.00016.30
4.3.00.0020.00116.30

preferences:
143.36 ms | 1440 KiB | 7 Q