3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { echo "Construct of A is called"; } } class B extends A { public function __construct() { parent::__construct(); } } new B();

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.30
8.3.50.0110.00519.04
8.3.40.0040.01118.70
8.3.30.0110.00318.73
8.3.20.0040.00420.60
8.3.10.0050.00323.64
8.3.00.0000.00820.54
8.2.180.0120.00916.50
8.2.170.0070.00722.96
8.2.160.0070.00720.23
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0090.00019.83
8.2.120.0080.00026.35
8.2.110.0070.00322.11
8.2.100.0040.00817.58
8.2.90.0040.00420.59
8.2.80.0030.00617.97
8.2.70.0040.00417.92
8.2.60.0000.00817.91
8.2.50.0060.00318.10
8.2.40.0000.00919.38
8.2.30.0050.00220.67
8.2.20.0050.00317.91
8.2.10.0030.00520.90
8.2.00.0000.00817.96
8.1.280.0170.00325.92
8.1.270.0040.00422.18
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00622.52
8.1.230.0040.00720.97
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0050.00317.23
8.1.190.0040.00716.98
8.1.180.0030.00518.10
8.1.170.0040.00418.46
8.1.160.0000.00818.78
8.1.150.0040.00418.79
8.1.140.0040.00318.98
8.1.130.0000.00720.25
8.1.120.0060.00317.37
8.1.110.0050.00317.38
8.1.100.0030.00617.32
8.1.90.0030.00617.29
8.1.80.0000.00917.22
8.1.70.0040.00417.33
8.1.60.0040.00417.39
8.1.50.0000.00717.50
8.1.40.0040.00417.35
8.1.30.0080.00017.55
8.1.20.0040.00417.60
8.1.10.0000.00817.37
8.1.00.0000.00917.32
8.0.300.0070.00020.02
8.0.290.0040.00416.75
8.0.280.0070.00018.43
8.0.270.0040.00417.17
8.0.260.0020.00518.48
8.0.250.0070.00016.88
8.0.240.0020.00516.72
8.0.230.0000.00716.73
8.0.220.0000.00716.65
8.0.210.0080.00016.64
8.0.200.0060.00016.71
8.0.190.0040.00416.79
8.0.180.0050.00216.80
8.0.170.0000.00916.79
8.0.160.0080.00016.78
8.0.150.0070.00016.53
8.0.140.0040.00416.73
8.0.130.0030.00313.13
8.0.120.0040.00416.58
8.0.110.0040.00416.69
8.0.100.0070.00016.82
8.0.90.0070.00016.76
8.0.80.0110.01016.69
8.0.70.0000.00816.63
8.0.60.0040.00416.79
8.0.50.0040.00416.71
8.0.30.0110.00816.88
8.0.20.0160.01016.85
8.0.10.0040.00416.69
8.0.00.0150.00616.73
7.4.330.0020.00216.69
7.4.320.0000.00616.50
7.4.300.0080.00016.50
7.4.290.0070.00016.49
7.4.280.0000.00816.43
7.4.270.0030.00316.35
7.4.260.0030.00316.41
7.4.250.0000.00716.39
7.4.240.0040.00416.43
7.4.230.0070.00016.43
7.4.220.0050.00216.56
7.4.210.0080.00916.48
7.4.200.0040.00416.64
7.4.160.0080.01016.39
7.4.140.0150.00317.86
7.4.130.0110.00716.49
7.4.120.0160.00316.39
7.4.110.0080.01616.76
7.4.100.0030.01416.50
7.4.90.0140.00716.36
7.4.80.0070.01019.39
7.4.70.0100.01316.43
7.4.60.0160.00016.54
7.4.50.0070.01016.35
7.4.40.0030.01516.34
7.4.00.0030.01515.13
7.3.330.0000.00513.29
7.3.320.0000.00513.25
7.3.310.0000.00716.31
7.3.300.0030.00316.25
7.3.290.0000.00616.10
7.3.280.0100.00616.21
7.3.260.0110.00816.29
7.3.240.0080.00916.39
7.3.230.0110.01216.34
7.3.210.0090.00816.11
7.3.200.0090.00616.23
7.3.190.0060.01016.36
7.3.180.0060.01016.50
7.3.170.0080.00816.51
7.3.160.0150.00016.32
7.3.40.0070.00514.47
7.3.30.0060.01114.29
7.3.20.0060.00716.38
7.3.10.0070.00716.40
7.3.00.0040.00816.48
7.2.330.0110.00616.50
7.2.320.0070.01016.57
7.2.310.0110.00616.42
7.2.300.0070.01116.60
7.2.290.0130.00316.72
7.2.170.0050.00814.80
7.2.160.0030.01015.02
7.2.150.0080.01116.92
7.2.140.0040.00716.79
7.2.130.0070.01116.70
7.2.120.0110.00016.79
7.2.110.0120.00016.56
7.2.100.0090.00616.86
7.2.90.0110.00416.81
7.2.80.0060.00916.72
7.2.70.0060.00916.85
7.2.60.0030.01416.60
7.2.50.0140.00816.79
7.2.40.0060.00716.63
7.2.30.0040.01116.50
7.2.20.0090.00316.68
7.2.10.0070.00716.73
7.2.00.0080.00416.66
7.1.280.0080.00815.50
7.1.270.0070.00415.58
7.1.260.0040.00715.67
7.1.250.0030.00915.61

preferences:
53.39 ms | 401 KiB | 5 Q