3v4l.org

run code in 300+ PHP versions simultaneously
<?php  class MyClass {    public function __construct()     {     echo 'MyClass class has initialized !';    }   }  $userclass = new MyClass;  ?>

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.0040.01116.38
8.3.50.0100.00622.84
8.3.40.0170.00018.59
8.3.30.0070.00718.96
8.3.20.0070.00020.21
8.3.10.0040.00421.77
8.3.00.0000.00817.38
8.2.180.0110.00718.18
8.2.170.0040.01122.96
8.2.160.0130.00720.30
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00321.02
8.2.110.0040.00422.12
8.2.100.0080.00417.78
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0030.00717.50
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0000.00718.16
8.2.30.0000.00817.96
8.2.20.0040.00417.54
8.2.10.0000.00817.79
8.2.00.0040.00417.60
8.1.280.0110.01425.92
8.1.270.0000.00823.88
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0070.00419.22
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0050.00316.88
8.1.180.0040.00418.10
8.1.170.0050.00318.43
8.1.160.0040.00421.87
8.1.150.0040.00418.73
8.1.140.0040.00417.14
8.1.130.0030.00319.47
8.1.120.0050.00217.25
8.1.110.0000.00817.17
8.1.100.0030.00517.20
8.1.90.0000.00717.32
8.1.80.0000.00817.27
8.1.70.0040.00717.28
8.1.60.0000.00917.44
8.1.50.0040.00417.36
8.1.40.0000.00817.39
8.1.30.0040.00417.40
8.1.20.0070.00017.44
8.1.10.0020.00517.32
8.1.00.0060.00717.31
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00818.36
8.0.270.0030.00317.11
8.0.260.0030.00517.22
8.0.250.0000.00716.82
8.0.240.0000.00816.88
8.0.230.0050.00216.77
8.0.220.0040.00416.79
8.0.210.0000.00716.64
8.0.200.0030.00316.71
8.0.190.0000.00716.80
8.0.180.0000.00816.73
8.0.170.0000.00716.76
8.0.160.0030.00316.72
8.0.150.0000.00716.64
8.0.140.0070.00416.74
8.0.130.0050.00013.43
8.0.120.0040.00416.74
8.0.110.0000.00716.64
8.0.100.0050.00216.69
8.0.90.0040.00416.63
8.0.80.0040.01216.79
8.0.70.0040.00416.59
8.0.60.0000.00716.79
8.0.50.0040.00416.79
8.0.30.0110.01016.93
8.0.20.0070.01217.40
8.0.10.0000.00716.90
8.0.00.0070.01416.59
7.4.330.0000.00515.09
7.4.320.0030.00316.37
7.4.300.0040.00416.45
7.4.290.0070.00016.39
7.4.280.0000.00916.30
7.4.270.0030.00316.38
7.4.260.0030.00316.39
7.4.250.0000.00716.46
7.4.240.0040.00316.47
7.4.230.0000.00716.11
7.4.220.0070.01416.57
7.4.210.0040.01516.25
7.4.200.0030.00516.29
7.4.160.0100.01016.34
7.4.150.0070.01417.40
7.4.140.0080.01017.86
7.4.130.0090.00916.30
7.4.120.0130.00316.40
7.4.110.0090.00916.41
7.4.100.0090.01616.17
7.4.90.0110.00616.18
7.4.80.0130.00319.39
7.4.70.0160.00016.25
7.4.60.0030.01216.46
7.4.50.0080.00016.32
7.4.40.0060.01016.36
7.4.30.0060.00916.42
7.3.330.0030.00312.99
7.3.320.0020.00213.28
7.3.310.0000.00616.21
7.3.300.0030.00316.07
7.3.290.0110.00816.07
7.3.280.0070.01016.09
7.3.270.0120.01217.40
7.3.260.0090.00816.10
7.3.240.0030.01316.24
7.3.230.0100.00616.39
7.3.210.0030.01316.09
7.3.200.0110.00719.39
7.3.190.0100.00716.46
7.3.180.0100.01016.36
7.3.170.0100.00616.39
7.3.160.0040.01116.34
7.2.330.0080.00816.58
7.2.320.0090.01216.30
7.2.310.0070.01016.48
7.2.300.0160.00016.59
7.2.290.0120.00716.38
5.4.320.0110.03212.45
5.4.310.0060.04612.45
5.4.300.0080.03812.45
5.4.290.0060.04012.45
5.4.280.0050.03612.34
5.4.270.0050.03712.34
5.4.260.0130.03812.34
5.4.250.0060.03812.35
5.4.240.0060.03612.34
5.4.230.0070.03812.34
5.4.220.0080.03312.34
5.4.210.0090.03812.34
5.4.200.0030.04312.34
5.4.190.0070.03712.34
5.4.180.0050.04112.33
5.4.170.0030.04812.35
5.4.160.0090.03812.34
5.4.150.0060.03612.34
5.4.140.0070.03612.02
5.4.130.0050.03612.01
5.4.120.0080.03311.97
5.4.110.0070.03911.96
5.4.100.0050.04211.96
5.4.90.0030.03911.96
5.4.80.0060.04011.96
5.4.70.0060.03711.96
5.4.60.0060.03511.96
5.4.50.0080.03411.96
5.4.40.0090.03611.95
5.4.30.0100.03311.95
5.4.20.0080.03411.95
5.4.10.0100.03811.94
5.4.00.0040.03811.44

preferences:
36.09 ms | 401 KiB | 5 Q