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.0090.00618.18
8.3.50.0050.01521.92
8.3.40.0110.00418.42
8.3.30.0110.00618.81
8.3.20.0070.00020.21
8.3.10.0100.00323.71
8.3.00.0040.00419.44
8.2.180.0040.01216.60
8.2.170.0140.00022.96
8.2.160.0160.00320.11
8.2.150.0170.00324.18
8.2.140.0130.00724.66
8.2.130.0080.00026.16
8.2.120.0000.00819.23
8.2.110.0060.00322.02
8.2.100.0080.00417.78
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00717.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0030.00619.38
8.2.30.0000.00717.99
8.2.20.0000.00817.68
8.2.10.0040.00417.93
8.2.00.0000.00717.49
8.1.280.0140.00425.92
8.1.270.0090.00023.97
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00323.93
8.1.230.0040.00718.97
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.00
8.1.190.0080.00017.00
8.1.180.0000.00718.10
8.1.170.0000.00818.72
8.1.160.0040.00421.89
8.1.150.0040.00418.60
8.1.140.0020.00517.28
8.1.130.0080.00017.78
8.1.120.0000.00717.40
8.1.110.0000.00817.33
8.1.100.0030.00317.35
8.1.90.0030.00317.39
8.1.80.0000.00717.29
8.1.70.0030.00517.35
8.1.60.0020.00517.35
8.1.50.0040.00417.40
8.1.40.0040.00517.44
8.1.30.0060.00317.60
8.1.20.0040.00417.42
8.1.10.0050.00317.57
8.1.00.0090.00317.43
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00818.29
8.0.270.0030.00317.12
8.0.260.0060.00017.18
8.0.250.0030.00316.92
8.0.240.0080.00016.82
8.0.230.0030.00316.90
8.0.220.0060.00016.87
8.0.210.0030.00316.83
8.0.200.0000.00616.77
8.0.190.0030.00616.77
8.0.180.0000.00716.91
8.0.170.0000.00816.86
8.0.160.0040.00416.88
8.0.150.0000.00816.84
8.0.140.0000.00816.76
8.0.130.0030.00313.25
8.0.120.0050.00216.70
8.0.110.0070.00016.83
8.0.100.0070.00016.68
8.0.90.0000.00716.77
8.0.80.0070.01116.82
8.0.70.0080.00016.71
8.0.60.0040.00416.79
8.0.50.0030.00516.84
8.0.30.0120.00816.84
8.0.20.0090.00917.40
8.0.10.0040.00416.83
8.0.00.0110.00516.67
7.4.330.0000.00715.00
7.4.320.0070.00016.44
7.4.300.0030.00516.43
7.4.290.0030.00316.47
7.4.280.0100.00016.57
7.4.270.0000.00716.54
7.4.260.0070.00016.34
7.4.250.0040.00416.38
7.4.240.0050.00216.38
7.4.230.0030.00316.27
7.4.220.0120.01516.33
7.4.210.0070.00716.45
7.4.200.0000.00716.60
7.4.160.0140.00316.16
7.4.150.0110.00717.40
7.4.140.0080.01017.86
7.4.130.0070.01216.35
7.4.120.0090.00816.46
7.4.110.0100.00716.34
7.4.100.0060.01216.45
7.4.90.0060.01016.28
7.4.80.0150.00319.39
7.4.70.0080.01616.45
7.4.60.0030.01416.35
7.4.50.0000.00816.42
7.4.40.0060.00916.22
7.4.30.0030.01316.27
7.4.00.0070.00714.85
7.3.330.0050.00013.20
7.3.320.0050.00012.97
7.3.310.0030.00316.05
7.3.300.0000.00716.19
7.3.290.0040.01116.30
7.3.280.0100.00816.19
7.3.270.0060.01217.40
7.3.260.0060.01216.43
7.3.250.0100.00916.12
7.3.240.0100.01316.17
7.3.230.0100.01016.39
7.3.210.0090.00916.43
7.3.200.0140.00719.39
7.3.190.0030.01216.19
7.3.180.0100.00716.57
7.3.170.0090.00616.27
7.3.160.0040.01416.15
7.3.120.0030.01214.38
7.3.10.0030.01016.31
7.3.00.0030.01016.38
7.2.330.0110.01116.39
7.2.320.0070.01016.63
7.2.310.0100.00616.34
7.2.300.0030.01316.55
7.2.290.0090.01216.58
7.2.130.0030.00716.81
7.2.120.0000.01416.53
7.2.110.0000.01416.87
7.2.100.0000.01216.90
7.2.90.0040.01416.86
7.2.80.0040.00716.54
7.2.70.0000.01116.66
7.2.60.0030.01016.96
7.2.50.0040.00716.83
7.2.40.0000.01216.88
7.2.30.0060.01016.85
7.2.20.0040.01116.67
7.2.10.0070.00316.80
7.2.00.0100.00716.89
7.1.250.0040.00415.70
7.1.200.0030.01015.66
7.1.70.0050.00316.96
7.1.60.0110.01419.70
7.1.50.0040.01116.97
7.1.00.0070.07322.31
7.0.200.0030.00316.37
7.0.140.0070.07022.00
7.0.60.0030.04319.94
7.0.50.0170.07717.72
7.0.40.0070.05020.20
7.0.30.0270.08020.21
7.0.20.0230.08720.02
7.0.10.0030.09720.09
7.0.00.0030.05020.16
5.6.280.0030.07021.00
5.6.210.0030.08320.77
5.6.200.0030.04318.19
5.6.190.0000.04720.48
5.6.180.3870.03720.61
5.6.170.0500.03020.48
5.6.160.0130.07720.54
5.6.150.0100.04718.19
5.6.140.0030.08718.21
5.6.130.0170.07718.29
5.6.120.0100.08020.97
5.6.110.0130.06720.96
5.6.100.0070.04021.11
5.6.90.0100.08321.01
5.6.80.0070.06320.41
5.6.70.4130.04020.37
5.5.350.0000.09320.53
5.5.340.0100.03018.02
5.5.330.0130.08020.40
5.5.320.0300.06720.30
5.5.310.0330.07020.41
5.5.300.0170.07018.03
5.5.290.0130.06718.04
5.5.280.0170.03020.80
5.5.270.0000.08720.75
5.5.260.0030.06720.69
5.5.250.0170.04720.68
5.5.240.0270.07720.16
5.4.450.0400.04043.90
5.4.440.0400.04743.87
5.4.430.0130.05043.79
5.4.420.0270.04043.79
5.4.410.0200.05043.79
5.4.400.0230.04043.79
5.4.390.0300.05043.77
5.4.380.0230.06318.62
5.4.370.0330.06318.61
5.4.360.0330.05318.70
5.4.350.0530.08318.82
5.4.340.0400.05718.53
5.4.320.0060.03712.50
5.4.310.0040.03912.49
5.4.300.0050.03812.50
5.4.290.0080.03912.50
5.4.280.0110.03212.39
5.4.270.0070.04412.39
5.4.260.0070.03712.39
5.4.250.0090.03712.39
5.4.240.0090.03412.39
5.4.230.0080.04112.39
5.4.220.0050.03812.39
5.4.210.0100.03412.39
5.4.200.0090.03612.39
5.4.190.0080.03912.39
5.4.180.0070.03712.38
5.4.170.0090.03812.39
5.4.160.0110.03912.39
5.4.150.0080.03512.38
5.4.140.0090.04212.07
5.4.130.0050.03612.06
5.4.120.0070.03412.02
5.4.110.0070.03512.01
5.4.100.0070.03712.01
5.4.90.0060.04112.01
5.4.80.0060.03712.01
5.4.70.0060.03412.01
5.4.60.0080.03312.01
5.4.50.0060.03612.01
5.4.40.0100.03612.00
5.4.30.0060.04011.99
5.4.20.0070.04012.00
5.4.10.0080.03412.00
5.4.00.0060.03711.48
5.3.290.0050.04012.80
5.3.280.0050.03812.71
5.3.270.0070.04012.72
5.3.260.0060.04212.72
5.3.250.0110.05012.72
5.3.240.0100.03912.72
5.3.230.0080.03512.71
5.3.220.0100.04512.68
5.3.210.0060.04212.68
5.3.200.0060.04112.68
5.3.190.0100.03712.68
5.3.180.0050.03912.67
5.3.170.0040.04312.67
5.3.160.0110.04212.68
5.3.150.0100.03812.68
5.3.140.0100.03912.66
5.3.130.0050.04412.65
5.3.120.0060.03912.66
5.3.110.0080.03912.65
5.3.100.0060.03712.11
5.3.90.0080.03912.09
5.3.80.0070.03912.09
5.3.70.0040.03812.09
5.3.60.0070.03512.07
5.3.50.0060.03612.02
5.3.40.0080.04212.02
5.3.30.0050.03711.97
5.3.20.0050.03611.75
5.3.10.0070.03411.72
5.3.00.0040.04111.71
5.2.170.0060.0319.21
5.2.160.0080.0299.21
5.2.150.0060.0299.21
5.2.140.0000.0369.21
5.2.130.0040.0299.17
5.2.120.0070.0269.17
5.2.110.0060.0289.18
5.2.100.0010.0329.17
5.2.90.0050.0319.16
5.2.80.0070.0289.16
5.2.70.0040.0319.17
5.2.60.0070.0319.13
5.2.50.0030.0319.09
5.2.40.0040.0309.07
5.2.30.0090.0259.04
5.2.20.0040.0299.03
5.2.10.0070.0298.93
5.2.00.0050.0378.80
5.1.60.0040.0318.09
5.1.50.0030.0298.09
5.1.40.0040.0288.06
5.1.30.0070.0278.41
5.1.20.0030.0348.43
5.1.10.0050.0258.16
5.1.00.0030.0268.16
5.0.50.0010.0236.63
5.0.40.0020.0216.50
5.0.30.0030.0346.30
5.0.20.0010.0216.27
5.0.10.0050.0186.25
5.0.00.0030.0366.25
4.4.90.0010.0184.78
4.4.80.0030.0154.75
4.4.70.0020.0164.75
4.4.60.0020.0184.75
4.4.50.0030.0184.77
4.4.40.0000.0304.71
4.4.30.0050.0234.76
4.4.20.0040.0204.85
4.4.10.0020.0194.85
4.4.00.0030.0244.75
4.3.110.0020.0164.66
4.3.100.0010.0164.67
4.3.90.0030.0164.63
4.3.80.0050.0224.59
4.3.70.0020.0154.63
4.3.60.0060.0164.63
4.3.50.0030.0194.63
4.3.40.0030.0254.54
4.3.30.0030.0223.30
4.3.20.0020.0153.28
4.3.10.0020.0233.24
4.3.00.0100.02043.77

preferences:
31.49 ms | 401 KiB | 5 Q