3v4l.org

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

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.0090.00618.31
8.3.50.0150.00522.11
8.3.40.0070.00718.54
8.3.30.0140.00319.10
8.3.20.0040.00419.95
8.3.10.0080.00023.55
8.3.00.0060.00319.66
8.2.180.0090.00916.50
8.2.170.0150.00622.96
8.2.160.0130.00320.21
8.2.150.0000.02024.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0050.00319.36
8.2.110.0060.00321.03
8.2.100.0080.00317.91
8.2.90.0040.00417.75
8.2.80.0060.00317.97
8.2.70.0060.00317.93
8.2.60.0000.00718.16
8.2.50.0080.00018.10
8.2.40.0070.00020.59
8.2.30.0020.00518.18
8.2.20.0040.00417.61
8.2.10.0050.00217.98
8.2.00.0000.00717.54
8.1.280.0090.00625.92
8.1.270.0030.00524.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.42
8.1.230.0070.00420.96
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0080.00017.10
8.1.180.0000.00718.10
8.1.170.0040.00418.52
8.1.160.0000.00821.81
8.1.150.0040.00418.52
8.1.140.0040.00417.39
8.1.130.0070.00017.75
8.1.120.0050.00217.43
8.1.110.0000.00817.38
8.1.100.0030.00417.29
8.1.90.0030.00317.29
8.1.80.0070.00017.41
8.1.70.0000.00817.37
8.1.60.0040.00417.57
8.1.50.0040.00417.53
8.1.40.0030.00617.50
8.1.30.0000.00817.64
8.1.20.0040.00417.70
8.1.10.0070.00017.59
8.1.00.0040.00717.38
8.0.300.0090.00020.03
8.0.290.0000.00816.75
8.0.280.0040.00418.44
8.0.270.0000.00817.26
8.0.260.0000.00817.28
8.0.250.0000.00716.91
8.0.240.0000.00816.79
8.0.230.0050.00216.78
8.0.220.0000.00716.81
8.0.210.0000.00716.80
8.0.200.0060.00016.89
8.0.190.0040.00416.98
8.0.180.0030.00316.78
8.0.170.0000.00916.84
8.0.160.0040.00416.88
8.0.150.0070.00016.81
8.0.140.0110.00016.75
8.0.130.0030.00313.29
8.0.120.0040.00416.81
8.0.110.0030.00516.75
8.0.100.0070.00016.71
8.0.90.0030.00316.75
8.0.80.0040.01216.79
8.0.70.0000.00716.72
8.0.60.0000.00716.78
8.0.50.0000.00816.81
8.0.30.0100.00917.04
8.0.20.0130.00617.41
8.0.10.0040.00416.75
8.0.00.0060.00916.73
7.4.330.0060.00015.00
7.4.320.0030.00316.45
7.4.300.0030.00316.48
7.4.290.0030.00316.59
7.4.280.0070.00316.49
7.4.270.0000.00716.58
7.4.260.0030.00316.47
7.4.250.0020.00516.51
7.4.240.0030.00416.60
7.4.230.0030.00316.66
7.4.220.0150.00916.63
7.4.210.0030.01316.69
7.4.200.0030.00316.39
7.4.160.0090.01316.51
7.4.150.0070.01117.40
7.4.140.0090.00817.86
7.4.130.0150.00316.45
7.4.120.0120.00916.59
7.4.110.0040.01416.22
7.4.100.0140.00316.56
7.4.90.0130.00616.50
7.4.80.0160.00319.39
7.4.70.0100.01316.50
7.4.60.0120.00916.55
7.4.50.0050.00316.54
7.4.40.0070.01016.64
7.4.30.0110.00416.43
7.4.00.0050.01114.93
7.3.330.0000.00513.26
7.3.320.0000.00513.10
7.3.310.0050.00216.11
7.3.300.0070.00016.10
7.3.290.0070.00716.30
7.3.280.0110.00616.24
7.3.270.0100.00717.40
7.3.260.0090.00916.45
7.3.250.0130.00316.30
7.3.240.0130.00916.46
7.3.230.0080.01216.39
7.3.210.0070.01016.18
7.3.200.0080.00819.39
7.3.190.0140.00616.17
7.3.180.0090.00616.42
7.3.170.0110.01116.27
7.3.160.0030.01116.54
7.3.120.0040.01214.87
7.3.110.0120.00414.94
7.3.100.0090.00614.66
7.3.90.0090.00614.60
7.3.80.0150.00014.88
7.3.70.0060.00614.70
7.3.60.0070.01014.65
7.3.50.0100.00714.64
7.3.40.0040.01414.66
7.3.30.0070.00714.73
7.3.20.0030.00716.50
7.3.10.0000.01416.29
7.3.00.0030.01016.56
7.2.330.0140.00316.70
7.2.320.0120.00716.55
7.2.310.0070.01416.39
7.2.300.0110.00516.78
7.2.290.0070.01316.44
7.2.250.0090.00914.89
7.2.240.0080.01214.96
7.2.230.0000.01015.22
7.2.220.0040.00414.97
7.2.210.0110.00415.17
7.2.200.0120.00614.82
7.2.190.0090.00615.04
7.2.180.0100.01015.11
7.2.170.0090.00614.72
7.2.00.0030.00719.21
7.1.330.0030.00915.50
7.1.320.0070.00315.79
7.1.310.0000.01015.53
7.1.300.0050.00315.77
7.1.290.0060.01215.34
7.1.280.0030.00715.40
7.1.270.0000.00815.66
7.1.260.0030.01015.80
7.1.100.0060.00617.99
7.1.70.0000.00816.95
7.1.60.0070.01819.70
7.1.50.0080.00416.95
7.1.00.0000.07722.44
7.0.200.0050.00216.39
7.0.140.0030.06721.97
7.0.60.0000.07319.94
7.0.50.0070.05017.72
7.0.40.0070.04720.11
7.0.30.0300.05320.22
7.0.20.0200.06320.12
7.0.10.0100.07020.19
7.0.00.0030.05720.14
5.6.280.0070.07021.05
5.6.210.0170.07720.55
5.6.200.0170.07318.29
5.6.190.0100.03720.56
5.6.180.4130.03320.39
5.6.170.0270.08020.71
5.6.160.0170.05020.50
5.6.150.0030.06318.18
5.6.140.0130.07318.15
5.6.130.0070.07718.11
5.6.120.0170.04720.90
5.6.110.0100.08720.98
5.6.100.0070.08320.98
5.6.90.0130.07720.97
5.6.80.0170.07020.36
5.5.350.0100.08020.32
5.5.340.0170.06317.98
5.5.330.0070.04020.18
5.5.320.0400.06720.35
5.5.310.0270.08020.27
5.5.300.0200.06717.96
5.5.290.0000.04318.07
5.5.280.0130.07720.98
5.5.270.0030.04720.79
5.5.260.0170.06020.73
5.5.250.0170.04020.79
5.5.240.3800.02320.16
5.4.450.0370.03343.90
5.4.440.0230.04043.88
5.4.430.0200.04043.80
5.4.420.0100.04343.79
5.4.410.0030.05043.77
5.4.400.0270.03343.77
5.4.390.0330.04343.77
5.4.380.0170.05318.73
5.4.370.0230.05018.59
5.4.360.0130.05018.73
5.4.350.0100.05718.63
5.4.340.0100.05718.63
5.4.320.0050.03712.50
5.4.310.0040.03912.50
5.4.300.0040.04012.50
5.4.290.0070.03712.49
5.4.280.0060.03612.39
5.4.270.0040.03712.39
5.4.260.0060.03812.40
5.4.250.0060.03712.39
5.4.240.0070.03812.39
5.4.230.0030.04012.39
5.4.220.0080.03512.39
5.4.210.0080.03312.39
5.4.200.0070.03612.39
5.4.190.0060.03612.38
5.4.180.0050.03612.39
5.4.170.0070.04012.39
5.4.160.0040.03812.39
5.4.150.0110.04312.39
5.4.140.0060.04412.07
5.4.130.0080.03512.06
5.4.120.0060.04212.02
5.4.110.0100.04312.02
5.4.100.0090.03912.01
5.4.90.0070.03712.01
5.4.80.0100.03812.01
5.4.70.0050.04112.01
5.4.60.0050.04512.01
5.4.50.0080.03512.01
5.4.40.0050.03612.00
5.4.30.0110.03412.00
5.4.20.0040.04111.99
5.4.10.0070.03712.00
5.4.00.0090.03611.48
5.3.290.0070.03712.80
5.3.280.0140.03012.71
5.3.270.0110.04012.73
5.3.260.0070.04612.72
5.3.250.0100.03412.72
5.3.240.0040.04112.72
5.3.230.0070.03812.71
5.3.220.0050.03912.68
5.3.210.0090.04112.68
5.3.200.0120.03112.68
5.3.190.0040.04112.68
5.3.180.0040.03812.68
5.3.170.0070.04112.67
5.3.160.0090.03312.67
5.3.150.0090.03412.68
5.3.140.0090.03312.66
5.3.130.0050.04112.66
5.3.120.0090.03512.66
5.3.110.0020.04812.66
5.3.100.0070.04212.12
5.3.90.0070.03512.10
5.3.80.0090.04512.09
5.3.70.0040.03812.09
5.3.60.0070.03712.07
5.3.50.0070.03512.02
5.3.40.0080.04612.02
5.3.30.0080.03411.97
5.3.20.0070.04111.75
5.3.10.0110.03111.73
5.3.00.0060.03611.72
5.2.170.0070.0299.22
5.2.160.0040.0299.21
5.2.150.0060.0309.21
5.2.140.0060.0319.21
5.2.130.0050.0289.17
5.2.120.0040.0299.17
5.2.110.0030.0309.18
5.2.100.0030.0329.18
5.2.90.0060.0329.17
5.2.80.0040.0319.16
5.2.70.0040.0319.17
5.2.60.0040.0309.13
5.2.50.0050.0359.10
5.2.40.0050.0309.07
5.2.30.0050.0299.04
5.2.20.0040.0299.03
5.2.10.0030.0308.93
5.2.00.0050.0288.80
5.1.60.0040.0248.09
5.1.50.0060.0248.09
5.1.40.0050.0238.06
5.1.30.0070.0238.41
5.1.20.0090.0298.43
5.1.10.0020.0288.16
5.1.00.0050.0258.16
5.0.50.0070.0176.63
5.0.40.0020.0206.50
5.0.30.0010.0346.30
5.0.20.0030.0206.27
5.0.10.0030.0216.25
5.0.00.0040.0316.25
4.4.90.0020.0274.77
4.4.80.0020.0154.75
4.4.70.0000.0184.75
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0030.0244.71
4.4.30.0020.0164.76
4.4.20.0050.0134.85
4.4.10.0020.0154.85
4.4.00.0040.0264.76
4.3.110.0040.0184.67
4.3.100.0030.0274.66
4.3.90.0020.0154.63
4.3.80.0010.0264.58
4.3.70.0030.0164.63
4.3.60.0040.0174.63
4.3.50.0040.0174.63
4.3.40.0010.0274.53
4.3.30.0030.0213.30
4.3.20.0040.0203.28
4.3.10.0040.0133.23
4.3.00.0130.01743.77

preferences:
43.16 ms | 401 KiB | 5 Q