3v4l.org

run code in 300+ PHP versions simultaneously
<?php class xxyy { } class xx { function __construct() { return new xxyy(); } } $x= new xx(); $y= $x->__construct(); echo print_r($x); echo print_r($y);

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.0030.01016.50
8.3.50.0070.00719.77
8.3.40.0030.01418.66
8.3.30.0040.01118.97
8.3.20.0070.00020.12
8.3.10.0040.00423.71
8.3.00.0030.00519.25
8.2.180.0120.00316.63
8.2.170.0080.00622.96
8.2.160.0030.01020.52
8.2.150.0000.00924.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0050.00321.01
8.2.110.0090.00022.05
8.2.100.0060.00617.78
8.2.90.0000.00819.21
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0030.00517.93
8.2.50.0060.00318.07
8.2.40.0000.00918.16
8.2.30.0050.00318.04
8.2.20.0000.00717.61
8.2.10.0040.00417.89
8.2.00.0000.00817.50
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00023.96
8.1.230.0000.01119.22
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.10
8.1.180.0000.00718.10
8.1.170.0000.00918.40
8.1.160.0040.00422.04
8.1.150.0050.00218.80
8.1.140.0000.00717.25
8.1.130.0030.00317.72
8.1.120.0030.00317.29
8.1.110.0100.00017.43
8.1.100.0040.00417.30
8.1.90.0030.00317.41
8.1.80.0030.00317.28
8.1.70.0030.00317.33
8.1.60.0030.00617.54
8.1.50.0090.00017.51
8.1.40.0040.00417.38
8.1.30.0060.00317.48
8.1.20.0040.00417.66
8.1.10.0000.00817.45
8.1.00.0030.00517.39
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0030.00317.16
8.0.260.0060.00017.15
8.0.250.0080.00016.84
8.0.240.0000.00716.85
8.0.230.0000.00716.85
8.0.220.0070.00016.79
8.0.210.0030.00616.72
8.0.200.0030.00316.74
8.0.190.0030.00516.85
8.0.180.0000.00716.89
8.0.170.0050.00316.83
8.0.160.0070.00016.76
8.0.150.0040.00416.80
8.0.140.0000.00716.71
8.0.130.0030.00313.26
8.0.120.0000.00816.80
8.0.110.0030.00416.73
8.0.100.0000.00916.71
8.0.90.0000.00816.69
8.0.80.0100.00716.79
8.0.70.0000.00716.77
8.0.60.0070.00016.78
8.0.50.0040.00416.84
8.0.30.0070.01116.97
8.0.20.0070.01417.40
8.0.10.0030.00316.74
8.0.00.0080.01016.60
7.4.330.0050.00015.06
7.4.320.0070.00016.52
7.4.300.0000.00616.58
7.4.290.0000.00716.38
7.4.280.0000.00716.53
7.4.270.0040.00416.61
7.4.260.0080.00016.50
7.4.250.0030.00616.56
7.4.240.0050.00316.55
7.4.230.0000.00716.69
7.4.220.0220.00616.61
7.4.210.0070.00716.62
7.4.200.0050.00316.42
7.4.160.0040.01116.51
7.4.150.0100.01717.40
7.4.140.0080.00817.86
7.4.130.0070.01016.57
7.4.120.0090.00816.33
7.4.110.0100.00716.55
7.4.100.0060.01216.51
7.4.90.0070.01016.48
7.4.80.0110.00619.39
7.4.70.0130.00616.38
7.4.60.0120.00616.41
7.4.50.0050.00316.25
7.4.40.0090.00916.41
7.4.30.0100.00716.55
7.4.00.0090.00615.14
7.3.330.0000.00613.03
7.3.320.0050.00013.20
7.3.310.0040.00416.27
7.3.300.0030.00316.25
7.3.290.0090.00616.18
7.3.280.0100.01116.17
7.3.270.0050.01417.40
7.3.260.0090.00916.50
7.3.250.0100.01116.42
7.3.240.0080.00816.31
7.3.230.0060.01216.49
7.3.210.0030.01416.25
7.3.200.0110.00519.39
7.3.190.0090.01216.30
7.3.180.0120.00316.34
7.3.170.0040.01116.31
7.3.160.0140.00316.26
7.2.330.0090.00916.35
7.2.320.0140.00316.58
7.2.310.0070.01016.73
7.2.300.0030.01316.74
7.2.290.0060.01016.54
7.2.60.0030.01317.01
7.2.00.0140.01019.52
7.1.200.0000.01115.74
7.1.100.0040.00717.68
7.1.70.0070.00017.03
7.1.60.0070.01719.40
7.1.50.0100.01016.77
7.1.00.0100.07022.32
7.0.200.0000.01016.73
7.0.140.0030.07022.09
7.0.60.0030.05719.84
7.0.50.0030.05017.87
7.0.40.0100.08320.24
7.0.30.0300.06720.11
7.0.20.0200.03720.25
7.0.10.0100.05020.12
7.0.00.0070.08020.05
5.6.210.0130.05720.48
5.6.200.0170.07318.16
5.6.190.0170.07020.52
5.6.180.0370.03320.47
5.6.170.0200.09320.54
5.6.160.0230.06720.52
5.6.150.0030.07318.18
5.6.140.0100.03718.21
5.6.130.0000.04318.15
5.6.120.0000.05321.12
5.6.110.0170.07020.89
5.6.100.0030.08720.96
5.6.90.0000.04321.10
5.6.80.0030.04320.51
5.5.350.0100.07020.39
5.5.340.0100.06317.95
5.5.330.0030.08720.37
5.5.320.0100.07320.25
5.5.310.0370.04320.34
5.5.300.0070.05318.03
5.5.290.0000.05717.95
5.5.280.0070.08020.80
5.5.270.0100.08020.72
5.5.260.0070.08020.97
5.5.250.0030.04020.71
5.5.240.0200.08020.11
5.4.450.0530.04719.57
5.4.440.0770.04019.38
5.4.430.0500.04319.46
5.4.420.0530.03719.54
5.4.410.0470.04719.33
5.4.400.0500.03319.08
5.4.390.0470.04319.08
5.4.380.0330.05718.74
5.4.370.0270.06318.75
5.4.360.0330.06018.77
5.4.350.0400.05718.74
5.4.340.0430.06318.72
5.4.320.0090.03612.50
5.4.310.0110.05212.50
5.4.300.0030.04412.50
5.4.290.0090.05012.50
5.4.280.0090.04712.39
5.4.270.0080.04712.39
5.4.260.0020.04812.39
5.4.250.0090.04012.39
5.4.240.0070.03712.39
5.4.230.0090.04012.38
5.4.220.0120.03612.38
5.4.210.0060.04012.39
5.4.200.0040.04512.38
5.4.190.0060.03612.38
5.4.180.0050.03812.39
5.4.170.0080.03412.39
5.4.160.0070.04312.39
5.4.150.0090.03412.38
5.4.140.0080.04912.07
5.4.130.0050.03812.06
5.4.120.0060.03412.02
5.4.110.0050.03612.01
5.4.100.0060.04212.01
5.4.90.0050.05212.01
5.4.80.0100.04612.02
5.4.70.0090.04812.01
5.4.60.0060.03712.01
5.4.50.0110.04112.01
5.4.40.0080.03711.99
5.4.30.0100.03312.00
5.4.20.0100.03711.99
5.4.10.0060.03512.00
5.4.00.0040.04411.48
5.3.290.0100.03512.80
5.3.280.0090.03712.70
5.3.270.0130.04712.72
5.3.260.0120.06412.72
5.3.250.0050.04012.71
5.3.240.0090.03612.72
5.3.230.0040.03912.70
5.3.220.0040.04112.68
5.3.210.0040.04112.68
5.3.200.0050.03812.68
5.3.190.0070.03812.68
5.3.180.0080.04612.67
5.3.170.0110.03612.67
5.3.160.0070.04012.68
5.3.150.0090.03612.67
5.3.140.0100.04312.66
5.3.130.0080.05812.66
5.3.120.0120.05412.66
5.3.110.0050.05812.66
5.3.100.0080.05112.12
5.3.90.0070.05312.10
5.3.80.0050.05212.09
5.3.70.0040.03912.09
5.3.60.0100.03312.07
5.3.50.0040.03812.02
5.3.40.0100.04012.02
5.3.30.0060.03511.98
5.3.20.0040.03811.77
5.3.10.0040.03611.72
5.3.00.0040.03811.71
5.2.170.0050.0399.21
5.2.160.0090.0349.21
5.2.150.0060.0339.21
5.2.140.0080.0389.21
5.2.130.0050.0339.17
5.2.120.0050.0359.17
5.2.110.0050.0379.18
5.2.100.0060.0379.18
5.2.90.0080.0359.17
5.2.80.0060.0429.17
5.2.70.0030.0339.18
5.2.60.0050.0329.12
5.2.50.0040.0329.09
5.2.40.0090.0269.07
5.2.30.0050.0309.05
5.2.20.0060.0299.04
5.2.10.0040.0338.94
5.2.00.0050.0308.80
5.1.60.0030.0268.08
5.1.50.0040.0268.08
5.1.40.0060.0338.07
5.1.30.0070.0278.41
5.1.20.0050.0278.44
5.1.10.0050.0268.16
5.1.00.0050.0258.16
5.0.50.0060.0196.64
5.0.40.0020.0216.50
5.0.30.0040.0316.31
5.0.20.0050.0176.28
5.0.10.0040.0196.25
5.0.00.0050.0326.24
4.4.90.0050.0194.78
4.4.80.0020.0154.75
4.4.70.0020.0174.75
4.4.60.0030.0154.75
4.4.50.0070.0114.77
4.4.40.0030.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0144.85
4.4.10.0040.0144.85
4.4.00.0030.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0164.66
4.3.90.0000.0174.63
4.3.80.0010.0264.58
4.3.70.0040.0134.63
4.3.60.0030.0144.63
4.3.50.0060.0134.63
4.3.40.0020.0254.53
4.3.30.0010.0173.30
4.3.20.0020.0163.28
4.3.10.0010.0163.23
4.3.00.0030.01315.95

preferences:
89.04 ms | 400 KiB | 5 Q