3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Main { public function __construct() { //$obj = new Second; //$obj->test(); } public function test() { echo('test'); } } class Second extends Main { public function test2() { echo('test2'); } } $php = new Main; $obj = new Second; $obj->test2(); echo('<br/>'); $obj->test();

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.0110.00418.31
8.3.50.0130.00621.98
8.3.40.0100.01018.68
8.3.30.0090.00918.49
8.3.20.0040.00420.37
8.3.10.0040.00423.60
8.3.00.0080.00019.13
8.2.180.0070.00716.38
8.2.170.0120.00622.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00317.50
8.2.120.0070.00026.35
8.2.110.0150.00621.03
8.2.100.0090.00317.78
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0080.00017.49
8.2.60.0040.00418.05
8.2.50.0050.00318.10
8.2.40.0040.00419.39
8.2.30.0030.00320.56
8.2.20.0030.00617.68
8.2.10.0080.00018.06
8.2.00.0040.00417.99
8.1.280.0100.00725.92
8.1.270.0060.00323.80
8.1.260.0050.00228.09
8.1.250.0070.00028.09
8.1.240.0030.00622.80
8.1.230.0040.00819.61
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0050.00317.22
8.1.180.0000.00818.10
8.1.170.0050.00318.63
8.1.160.0000.00721.87
8.1.150.0000.00718.72
8.1.140.0040.00419.41
8.1.130.0070.00017.52
8.1.120.0000.00717.30
8.1.110.0000.01017.39
8.1.100.0050.00317.28
8.1.90.0070.00017.44
8.1.80.0050.00217.35
8.1.70.0040.00417.45
8.1.60.0090.00017.57
8.1.50.0030.00617.43
8.1.40.0000.00817.42
8.1.30.0040.00417.59
8.1.20.0040.00417.62
8.1.10.0080.00017.46
8.1.00.0000.00717.52
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.34
8.0.270.0030.00317.20
8.0.260.0060.00017.17
8.0.250.0070.00016.85
8.0.240.0000.00616.86
8.0.230.0000.00716.86
8.0.220.0000.00816.73
8.0.210.0030.00616.50
8.0.200.0000.00616.87
8.0.190.0040.00416.84
8.0.180.0070.00016.75
8.0.170.0050.00216.82
8.0.160.0030.00516.91
8.0.150.0000.00716.69
8.0.140.0000.00716.80
8.0.130.0030.00313.25
8.0.120.0080.00016.88
8.0.110.0040.00416.70
8.0.100.0070.00016.89
8.0.90.0040.00416.78
8.0.80.0110.00416.83
8.0.70.0000.00716.80
8.0.60.0000.00716.89
8.0.50.0050.00316.86
8.0.30.0160.00217.04
8.0.20.0120.00917.40
8.0.10.0050.00316.92
8.0.00.0090.00916.66
7.4.330.0000.00716.81
7.4.320.0000.00616.59
7.4.300.0030.00316.60
7.4.290.0040.00316.57
7.4.280.0040.00416.48
7.4.270.0000.00616.53
7.4.260.0070.00016.56
7.4.250.0080.00016.39
7.4.240.0050.00216.56
7.4.230.0070.00016.63
7.4.220.0100.01316.67
7.4.210.0090.00916.62
7.4.200.0030.00316.63
7.4.160.0080.00816.36
7.4.150.0160.00817.40
7.4.140.0110.01117.86
7.4.130.0100.01016.41
7.4.120.0090.00916.51
7.4.110.0070.01116.55
7.4.100.0160.00016.57
7.4.90.0030.01316.41
7.4.80.0100.00719.39
7.4.70.0170.00016.65
7.4.60.0120.00316.26
7.4.50.0150.00016.34
7.4.40.0160.00716.64
7.4.30.0120.00416.55
7.4.00.0070.00714.91
7.3.330.0000.00513.21
7.3.320.0020.00213.30
7.3.310.0000.00716.10
7.3.300.0030.00316.17
7.3.290.0060.00816.25
7.3.280.0110.00816.21
7.3.270.0170.00017.40
7.3.260.0030.01616.18
7.3.250.0100.01116.24
7.3.240.0080.00816.21
7.3.230.0030.01316.39
7.3.210.0030.01316.50
7.3.200.0130.00316.34
7.3.190.0060.00916.36
7.3.180.0030.01216.39
7.3.170.0060.01316.30
7.3.160.0080.00816.23
7.2.330.0090.00916.31
7.2.320.0070.01716.54
7.2.310.0120.00416.64
7.2.300.0110.00616.71
7.2.290.0100.01016.46
7.2.00.0090.00319.63
7.1.100.0970.00616.08
7.1.70.0040.00416.95
7.1.60.0140.01119.36
7.1.50.0080.00516.82
7.1.00.0030.07722.37
7.0.200.0090.00616.39
7.0.60.0070.08719.85
7.0.50.0130.07717.90
7.0.40.0100.04020.18
7.0.30.0400.07320.20
7.0.20.0170.05020.33
7.0.10.0170.04020.10
7.0.00.0130.08320.32
5.6.280.0000.06321.13
5.6.210.0070.03720.63
5.6.200.0070.03718.16
5.6.190.0030.05720.61
5.6.180.0530.06020.64
5.6.170.0170.05320.44
5.6.160.0100.03720.46
5.6.150.0100.08018.17
5.6.140.0000.04318.16
5.6.130.0070.04718.14
5.6.120.0070.04020.90
5.6.110.0070.04021.02
5.6.100.0070.04020.98
5.6.90.0100.08321.12
5.6.80.0070.06720.36
5.5.350.4200.04720.43
5.5.340.0070.06317.95
5.5.330.0130.08020.40
5.5.320.0100.07720.34
5.5.310.0200.08020.25
5.5.300.0030.04018.05
5.5.290.0130.08018.01
5.5.280.0000.04720.87
5.5.270.0030.07020.84
5.5.260.0070.08020.94
5.5.250.0200.03720.79
5.5.240.0200.07720.28

preferences:
51.73 ms | 401 KiB | 5 Q