3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function construct() { echo 'MyClass class has initialized !'; } } $userclass = new MyClass(); $this->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.40.0130.00718.75
8.3.30.0060.00918.87
8.3.20.0060.01320.21
8.3.10.0070.00023.66
8.3.00.0040.00419.55
8.2.170.0200.00022.96
8.2.160.0070.00720.47
8.2.150.0090.00624.18
8.2.140.0080.00024.66
8.2.130.0140.00326.16
8.2.120.0120.00619.23
8.2.110.0030.00622.05
8.2.100.0040.00717.59
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0040.00419.40
8.2.30.0040.00418.24
8.2.20.0040.00417.74
8.2.10.0070.00017.99
8.2.00.0030.00517.57
8.1.270.0080.00823.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00323.84
8.1.230.0040.00719.08
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0080.00018.51
8.1.160.0030.00621.88
8.1.150.0000.00718.50
8.1.140.0050.00217.37
8.1.130.0030.00317.78
8.1.120.0040.00417.32
8.1.110.0090.00017.34
8.1.100.0000.00717.36
8.1.90.0070.00017.33
8.1.80.0020.00517.28
8.1.70.0030.00317.37
8.1.60.0030.00617.56
8.1.50.0000.00817.50
8.1.40.0080.00017.46
8.1.30.0040.00417.59
8.1.20.0030.00617.60
8.1.10.0040.00417.55
8.1.00.0060.00317.55
8.0.300.0000.00818.77
8.0.290.0040.00416.58
8.0.280.0000.00718.38
8.0.270.0030.00317.17
8.0.260.0000.00617.14
8.0.250.0070.00016.83
8.0.240.0000.00716.94
8.0.230.0030.00316.96
8.0.220.0030.00316.93
8.0.210.0030.00316.86
8.0.200.0040.00416.92
8.0.190.0080.00016.90
8.0.180.0070.00016.88
8.0.170.0000.00816.91
8.0.160.0030.00416.95
8.0.150.0040.00416.93
8.0.140.0070.00516.89
8.0.130.0030.00313.28
8.0.120.0040.00416.85
8.0.110.0000.00716.77
8.0.100.0000.00716.90
8.0.90.0080.00016.78
8.0.80.0070.01316.93
8.0.70.0000.00716.95
8.0.60.0070.00016.84
8.0.50.0050.00316.81
8.0.30.0150.00517.18
8.0.20.0100.00817.40
8.0.10.0000.00816.89
8.0.00.0120.00716.83
7.4.330.0070.00015.00
7.4.320.0000.00616.43
7.4.300.0030.00316.50
7.4.290.0000.00616.60
7.4.280.0030.00716.57
7.4.270.0030.00316.51
7.4.260.0000.00716.56
7.4.250.0070.00016.54
7.4.240.0030.00416.49
7.4.230.0030.00516.64
7.4.220.0100.01416.44
7.4.210.0070.00716.55
7.4.200.0000.00716.63
7.4.160.0120.00316.47
7.4.150.0140.00317.40
7.4.140.0120.00517.86
7.4.130.0060.01216.55
7.4.120.0080.01016.52
7.4.110.0120.01216.54
7.4.100.0070.01416.32
7.4.90.0110.00616.53
7.4.80.0100.01219.39
7.4.70.0070.01016.70
7.4.60.0090.01216.46
7.4.50.0050.00316.44
7.4.40.0060.01216.59
7.4.30.0090.00916.48
7.4.00.0060.00615.14
7.3.330.0020.00213.27
7.3.320.0000.00613.09
7.3.310.0030.00316.24
7.3.300.0040.00416.21
7.3.290.0110.00416.21
7.3.280.0070.00916.29
7.3.270.0070.01117.40
7.3.260.0180.00016.30
7.3.250.0170.00716.40
7.3.240.0060.01116.50
7.3.230.0130.00616.39
7.3.210.0100.00716.43
7.3.200.0040.01419.39
7.3.190.0190.00316.42
7.3.180.0060.00916.21
7.3.170.0040.01216.29
7.3.160.0040.01116.35
7.3.120.0040.00814.84
7.3.10.0030.00716.77
7.3.00.0100.00016.70
7.2.330.0100.00716.33
7.2.320.0090.00916.55
7.2.310.0070.01116.38
7.2.300.0100.00716.45
7.2.290.0120.00416.38
7.2.130.0030.00616.55
7.2.120.0040.01116.69
7.2.110.0030.00816.87
7.2.100.0060.00616.62
7.2.90.0040.00816.90
7.2.80.0090.00516.86
7.2.70.0060.00617.02
7.2.60.0040.01116.73
7.2.50.0120.00016.80
7.2.40.0120.00016.98
7.2.30.0050.00816.83
7.2.20.0070.00416.98
7.2.10.0000.01316.66
7.2.00.0050.00818.24
7.1.250.0070.00315.30
7.1.200.0000.01415.62
7.1.100.0030.01017.67
7.1.70.0000.00816.98
7.1.60.0110.01419.70
7.1.50.0000.01116.93
7.1.00.0070.07322.30
7.0.200.2270.00316.77
7.0.140.0030.07322.10
7.0.60.0070.06719.74
7.0.50.0030.04317.85
7.0.40.0070.06020.18
7.0.30.0200.04320.21
7.0.20.0230.03320.23
7.0.10.0170.07720.10
7.0.00.0100.08320.10
5.6.280.0000.07720.86
5.6.210.0100.05020.59
5.6.200.0070.06318.24
5.6.190.0170.07320.42
5.6.180.3400.04020.68
5.6.170.0370.07320.48
5.6.160.0170.07720.46
5.6.150.0100.06318.21
5.6.140.0170.04018.15
5.6.130.0130.07318.27
5.6.120.0100.06721.13
5.6.110.0030.08721.11
5.6.100.0030.05721.11
5.6.90.0100.08020.98
5.6.80.0070.07320.29
5.6.70.4200.03720.39
5.5.350.0030.07320.47
5.5.340.0100.07717.99
5.5.330.0030.08020.21
5.5.320.0200.05320.34
5.5.310.0370.08020.35
5.5.300.0030.06318.01
5.5.290.0070.07717.96
5.5.280.0070.08720.68
5.5.270.0000.08320.73
5.5.260.0000.07020.76
5.5.250.0070.08720.49
5.5.240.0230.03020.19
5.4.450.0270.04343.90
5.4.440.0430.04343.89
5.4.430.0370.04343.82
5.4.420.0170.04343.79
5.4.410.0200.03343.78
5.4.400.0370.04043.77
5.4.390.0400.04043.77
5.4.380.0170.05018.47
5.4.370.0230.04018.46
5.4.360.0170.05018.79
5.4.350.0100.06318.47
5.4.340.0130.05318.47
5.4.320.0060.03612.50
5.4.310.0080.03512.50
5.4.300.0050.03712.50
5.4.290.0040.04012.49
5.4.280.0050.03612.39
5.4.270.0070.04612.40
5.4.260.0070.04212.39
5.4.250.0020.04112.39
5.4.240.0040.03812.39
5.4.230.0030.04112.39
5.4.220.0060.03612.39
5.4.210.0030.03812.39
5.4.200.0030.04012.39
5.4.190.0060.03512.39
5.4.180.0040.03712.38
5.4.170.0060.03612.39
5.4.160.0070.03512.39
5.4.150.0080.03612.38
5.4.140.0060.04612.07
5.4.130.0060.04112.06
5.4.120.0050.03612.01
5.4.110.0080.04012.02
5.4.100.0010.03912.01
5.4.90.0100.04112.01
5.4.80.0040.03812.01
5.4.70.0120.03512.01
5.4.60.0050.03512.01
5.4.50.0040.03712.01
5.4.40.0090.03412.00
5.4.30.0060.03911.99
5.4.20.0040.03611.99
5.4.10.0050.04412.00
5.4.00.0070.04011.48
5.3.290.0080.03612.80
5.3.280.0050.03812.71
5.3.270.0050.04412.73
5.3.260.0080.03712.71
5.3.250.0030.03912.72
5.3.240.0110.03912.72
5.3.230.0060.03812.71
5.3.220.0090.04312.68
5.3.210.0060.03912.68
5.3.200.0060.04712.68
5.3.190.0100.03912.67
5.3.180.0060.03912.67
5.3.170.0050.03712.67
5.3.160.0100.03912.67
5.3.150.0090.04512.68
5.3.140.0120.03612.66
5.3.130.0030.04812.66
5.3.120.0080.03612.66
5.3.110.0100.04212.66
5.3.100.0070.03612.12
5.3.90.0070.04112.10
5.3.80.0070.04012.10
5.3.70.0090.04312.09
5.3.60.0060.04112.07
5.3.50.0070.03512.03
5.3.40.0050.04512.03
5.3.30.0080.03711.98
5.3.20.0090.03611.76
5.3.10.0060.03811.73
5.3.00.0070.04011.72
5.2.170.0050.0349.22
5.2.160.0060.0299.22
5.2.150.0040.0319.22
5.2.140.0070.0319.22
5.2.130.0060.0369.18
5.2.120.0040.0289.18
5.2.110.0070.0279.18
5.2.100.0030.0309.18
5.2.90.0070.0319.18
5.2.80.0050.0309.18
5.2.70.0070.0369.17
5.2.60.0070.0289.13
5.2.50.0060.0299.10
5.2.40.0090.0269.08
5.2.30.0030.0319.05
5.2.20.0080.0329.04
5.2.10.0040.0288.94
5.2.00.0020.0358.80
5.1.60.0040.0318.09
5.1.50.0040.0258.09
5.1.40.0040.0278.07
5.1.30.0030.0308.41
5.1.20.0040.0288.43
5.1.10.0050.0258.17
5.1.00.0030.0268.17
5.0.50.0030.0216.64
5.0.40.0030.0206.50
5.0.30.0050.0406.31
5.0.20.0020.0206.27
5.0.10.0030.0216.25
5.0.00.0010.0336.25
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0040.0264.75
4.4.60.0050.0264.75
4.4.50.0040.0224.77
4.4.40.0040.0244.71
4.4.30.0020.0164.75
4.4.20.0020.0174.84
4.4.10.0050.0134.84
4.4.00.0010.0264.76
4.3.110.0010.0174.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0010.0264.59
4.3.70.0030.0144.63
4.3.60.0020.0164.63
4.3.50.0030.0174.63
4.3.40.0040.0294.54
4.3.30.0020.0223.30
4.3.20.0020.0223.28
4.3.10.0020.0203.23
4.3.00.0070.01343.77

preferences:
43.38 ms | 400 KiB | 5 Q