3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testClass { public function __construct(){echo 'JO';} } class t { public function __construct($T){ $myObj = new $T;} } $obj = new t('testClass');

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.0070.01416.38
8.3.50.0080.01222.00
8.3.40.0090.00618.72
8.3.30.0120.00318.98
8.3.20.0030.01020.04
8.3.10.0040.00421.65
8.3.00.0080.00019.38
8.2.180.0070.01118.54
8.2.170.0120.00322.96
8.2.160.0140.00020.38
8.2.150.0000.00824.18
8.2.140.0130.00624.66
8.2.130.0040.00426.16
8.2.120.0050.00222.25
8.2.110.0060.00319.39
8.2.100.0090.00317.87
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0030.00617.93
8.2.50.0060.00318.10
8.2.40.0060.00319.94
8.2.30.0080.00019.67
8.2.20.0080.00017.68
8.2.10.0040.00417.91
8.2.00.0040.00717.66
8.1.280.0120.00825.92
8.1.270.0000.00923.84
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00422.09
8.1.230.0040.00817.58
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0080.00018.50
8.1.160.0040.00421.95
8.1.150.0000.00818.56
8.1.140.0040.00417.45
8.1.130.0020.00517.73
8.1.120.0070.00017.41
8.1.110.0070.00017.28
8.1.100.0070.00017.42
8.1.90.0000.00717.34
8.1.80.0000.00917.27
8.1.70.0030.00317.26
8.1.60.0030.00517.47
8.1.50.0040.00417.46
8.1.40.0000.00717.49
8.1.30.0030.00617.57
8.1.20.0030.00617.54
8.1.10.0030.00617.43
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0040.00418.46
8.0.270.0000.00717.25
8.0.260.0000.00617.30
8.0.250.0030.00316.76
8.0.240.0040.00416.95
8.0.230.0000.00716.88
8.0.220.0000.00716.73
8.0.210.0040.00416.72
8.0.200.0000.00816.74
8.0.190.0000.00816.73
8.0.180.0020.00516.72
8.0.170.0070.00016.75
8.0.160.0050.00316.82
8.0.150.0040.00416.81
8.0.140.0000.00816.76
8.0.130.0030.00313.24
8.0.120.0080.00016.81
8.0.110.0040.00416.85
8.0.100.0040.00416.88
8.0.90.0040.00416.77
8.0.80.0110.00616.82
8.0.70.0050.00316.72
8.0.60.0030.00416.69
8.0.50.0070.00016.63
8.0.30.0160.00217.21
8.0.20.0120.00817.40
8.0.10.0040.00416.76
8.0.00.0100.00816.73
7.4.330.0020.00215.00
7.4.320.0000.00616.54
7.4.300.0040.00416.50
7.4.290.0000.00716.48
7.4.280.0000.00716.39
7.4.270.0030.00316.50
7.4.260.0000.00716.41
7.4.250.0040.00416.39
7.4.240.0030.00516.51
7.4.230.0000.00716.66
7.4.220.0160.00616.59
7.4.210.0100.00616.59
7.4.200.0050.00316.66
7.4.190.0070.00016.54
7.4.160.0060.01316.61
7.4.150.0060.01217.40
7.4.140.0140.00317.86
7.4.130.0080.00816.63
7.4.120.0090.01016.58
7.4.110.0120.00916.50
7.4.100.0090.01216.59
7.4.90.0130.01016.54
7.4.80.0120.00619.39
7.4.70.0030.01616.46
7.4.60.0130.00416.44
7.4.50.0070.00016.33
7.4.40.0070.00916.51
7.4.30.0110.01016.25
7.4.00.0030.01314.80
7.3.330.0060.00013.12
7.3.320.0060.00013.30
7.3.310.0040.00416.22
7.3.300.0000.00616.13
7.3.290.0060.00916.21
7.3.280.0070.00916.31
7.3.270.0070.01017.40
7.3.260.0070.01016.32
7.3.250.0100.01016.27
7.3.240.0030.02016.18
7.3.230.0070.01016.59
7.3.210.0130.00316.28
7.3.200.0090.00619.39
7.3.190.0150.00316.24
7.3.180.0000.01416.29
7.3.170.0130.00316.52
7.3.160.0120.00316.30
7.3.120.0060.00914.52
7.2.330.0150.00316.74
7.2.320.0070.01816.34
7.2.310.0070.01016.68
7.2.300.0040.01216.70
7.2.290.0080.00916.36
7.2.110.0130.00716.70
7.2.60.0030.01017.00
7.2.00.0060.01319.39
7.1.200.0040.00815.71
7.1.100.0030.00917.99
7.1.70.0000.00917.10
7.1.60.0140.01019.46
7.1.50.0060.01216.92
7.1.00.0000.08022.41
7.0.200.0300.00414.90
7.0.140.0030.07321.95
7.0.60.0230.07720.00
7.0.50.0000.06317.88
7.0.40.0100.06319.96
7.0.30.0130.04320.08
7.0.20.0230.07320.16
7.0.10.0000.05020.30
7.0.00.0070.08320.05
5.6.280.0070.07321.01
5.6.210.0100.04020.54
5.6.200.0100.04718.14
5.6.190.0130.07320.55
5.6.180.0230.07320.77
5.6.170.0230.08320.39
5.6.160.0130.07720.52
5.6.150.0070.03718.30
5.6.140.0070.04018.11
5.6.130.0070.07318.19
5.6.120.0030.08021.00
5.6.110.0170.07720.98
5.6.100.0030.04021.01
5.6.90.0030.08720.99
5.6.80.0100.07720.38
5.5.350.0170.07020.32
5.5.340.0070.04017.95
5.5.330.0130.08020.22
5.5.320.0300.07320.27
5.5.310.0370.07020.26
5.5.300.0100.07717.95
5.5.290.0070.08018.07
5.5.280.0100.03320.87
5.5.270.0270.06720.87
5.5.260.0170.07320.64
5.5.250.0100.08020.77
5.5.240.0200.03020.16
5.4.450.0330.05019.60
5.4.440.0100.06319.29
5.4.430.0270.05019.68
5.4.420.0130.07019.55
5.4.410.0200.05019.34
5.4.400.0170.05319.02
5.4.390.0100.05719.28
5.4.380.0230.06018.60
5.4.370.0400.04718.75
5.4.360.0300.05718.80
5.4.350.0230.06018.53
5.4.340.0330.05318.76
5.4.320.0090.03512.50
5.4.310.0110.04712.50
5.4.300.0100.03812.50
5.4.290.0040.04112.48
5.4.280.0100.05412.38
5.4.270.0100.05012.38
5.4.260.0130.04912.38
5.4.250.0100.04712.38
5.4.240.0060.04512.38
5.4.230.0120.05012.37
5.4.220.0050.04712.37
5.4.210.0070.03412.37
5.4.200.0070.03612.37
5.4.190.0070.03612.37
5.4.180.0030.04012.36
5.4.170.0070.04012.38
5.4.160.0050.04012.37
5.4.150.0070.03412.37
5.4.140.0060.03712.06
5.4.130.0070.03512.04
5.4.120.0100.04012.00
5.4.110.0070.03412.00
5.4.100.0080.03212.00
5.4.90.0040.03911.99
5.4.80.0060.03712.00
5.4.70.0040.04911.99
5.4.60.0050.05511.99
5.4.50.0100.04811.99
5.4.40.0090.04911.98
5.4.30.0120.03411.98
5.4.20.0030.03811.98
5.4.10.0060.03611.98
5.4.00.0070.04411.46
5.3.290.0060.04312.80
5.3.280.0070.04812.70
5.3.270.0080.03712.72
5.3.260.0070.03912.72
5.3.250.0070.03712.72
5.3.240.0050.04412.72
5.3.230.0040.04612.71
5.3.220.0120.05712.68
5.3.210.0050.04312.68
5.3.200.0070.05612.68
5.3.190.0090.05512.68
5.3.180.0050.05612.68
5.3.170.0070.05112.67
5.3.160.0120.05412.68
5.3.150.0090.05012.67
5.3.140.0110.03312.66
5.3.130.0110.04912.66
5.3.120.0100.04512.66
5.3.110.0100.05012.66
5.3.100.0050.04212.12
5.3.90.0040.04112.10
5.3.80.0040.03812.09
5.3.70.0060.03512.09
5.3.60.0090.03712.08
5.3.50.0060.03712.03
5.3.40.0080.05512.03
5.3.30.0060.04111.98
5.3.20.0090.03611.77
5.3.10.0080.04811.73
5.3.00.0080.04311.72
5.2.170.0070.0349.22
5.2.160.0090.0319.23
5.2.150.0040.0389.22
5.2.140.0050.0449.22
5.2.130.0060.0419.18
5.2.120.0050.0359.18
5.2.110.0050.0309.18
5.2.100.0060.0339.18
5.2.90.0080.0359.18
5.2.80.0070.0349.18
5.2.70.0060.0359.17
5.2.60.0050.0429.13
5.2.50.0030.0359.10
5.2.40.0060.0289.07
5.2.30.0020.0329.05
5.2.20.0070.0349.04
5.2.10.0040.0298.94
5.2.00.0050.0288.80
5.1.60.0060.0228.09
5.1.50.0030.0278.09
5.1.40.0040.0268.07
5.1.30.0060.0258.41
5.1.20.0040.0298.44
5.1.10.0040.0268.17
5.1.00.0050.0358.17
5.0.50.0020.0236.64
5.0.40.0040.0236.50
5.0.30.0110.0496.32
5.0.20.0020.0236.28
5.0.10.0020.0296.26
5.0.00.0040.0396.25
4.4.90.0030.0234.78
4.4.80.0040.0184.75
4.4.70.0030.0214.76
4.4.60.0080.0184.76
4.4.50.0080.0204.77
4.4.40.0050.0324.71
4.4.30.0040.0184.76
4.4.20.0060.0144.85
4.4.10.0030.0194.84
4.4.00.0070.0254.76
4.3.110.0050.0164.67
4.3.100.0040.0154.66
4.3.90.0050.0184.63
4.3.80.0040.0314.58
4.3.70.0050.0214.63
4.3.60.0030.0224.63
4.3.50.0030.0224.63
4.3.40.0050.0314.54
4.3.30.0020.0223.30
4.3.20.0020.0223.28
4.3.10.0020.0173.24
4.3.00.0170.01316.03

preferences:
39.93 ms | 400 KiB | 5 Q