3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $a = 'azerty'; function __construct($a = 'bug') { $this->this = &$this; $this->a = $a; $this->this = new a(); echo $this->a; } } $a = new a(10); echo $a->a;

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.01218.41
8.3.50.0140.00122.00
8.3.40.0170.00318.88
8.3.30.0110.00419.30
8.3.20.0000.00720.32
8.3.10.0030.00622.04
8.3.00.0040.00422.45
8.2.180.0120.00316.62
8.2.170.0040.01122.96
8.2.160.0060.00920.75
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0040.00418.00
8.2.110.0050.00522.12
8.2.100.0100.00319.45
8.2.90.0000.00719.48
8.2.80.0040.00417.97
8.2.70.0060.00317.88
8.2.60.0080.00018.18
8.2.50.0080.00018.07
8.2.40.0060.00318.28
8.2.30.0040.00418.15
8.2.20.0070.00017.89
8.2.10.0000.00819.35
8.2.00.0000.00717.98
8.1.280.0810.02779.25
8.1.270.0210.01051.61
8.1.260.0140.01051.62
8.1.250.0140.01150.18
8.1.240.0180.00051.68
8.1.230.0220.01548.66
8.1.220.0160.00647.05
8.1.210.0110.01446.73
8.1.200.0170.01046.73
8.1.190.0100.01446.68
8.1.180.0280.00046.75
8.1.170.0100.01348.03
8.1.160.0070.01751.35
8.1.150.0200.00747.91
8.1.140.0140.01446.56
8.1.130.0170.01047.13
8.1.120.0240.00746.65
8.1.110.0000.02246.71
8.1.100.0160.00646.75
8.1.90.0190.00646.77
8.1.80.0060.01646.88
8.1.70.0170.00346.71
8.1.60.0250.00746.89
8.1.50.0200.01046.94
8.1.40.0180.00746.96
8.1.30.0150.01246.89
8.1.20.0100.01446.98
8.1.10.0260.01680.67
8.1.00.0280.01480.63
8.0.300.0380.00780.29
8.0.290.0300.01080.05
8.0.280.0320.00781.40
8.0.270.0260.01380.18
8.0.260.0360.01379.84
8.0.250.0380.01079.88
8.0.240.0280.01879.86
8.0.230.0410.00779.71
8.0.220.0100.02779.83
8.0.210.0200.02079.80
8.0.200.0310.01079.89
8.0.190.0470.01679.82
8.0.180.0350.01679.92
8.0.170.0320.01979.77
8.0.160.0220.01979.89
8.0.150.0320.01979.85
8.0.140.0230.02679.72
8.0.130.0600.030136.15
8.0.120.0220.02279.87
8.0.110.0300.01379.82
8.0.100.0300.01379.69
8.0.90.0240.01779.89
8.0.80.0390.06679.82
8.0.70.0300.01479.70
8.0.60.0300.01079.79
8.0.50.0370.00379.93
8.0.30.0660.04180.19
8.0.20.0690.03980.25
8.0.10.0210.02180.00
8.0.00.0670.04779.78
7.4.330.0110.01576.39
7.4.320.0350.01379.35
7.4.300.0400.00779.46
7.4.290.0400.01179.55
7.4.280.0340.01779.54
7.4.270.0390.01379.56
7.4.260.0360.02579.45
7.4.250.0260.01679.48
7.4.240.0210.02379.56
7.4.230.0140.03479.29
7.4.220.0900.06779.66
7.4.210.0650.03979.47
7.4.200.0260.01379.59
7.4.190.0200.02079.50
7.4.160.0670.03079.47
7.4.150.0730.03679.56
7.4.140.0830.04079.45
7.4.130.0740.03279.49
7.4.120.0720.03079.63
7.4.110.0650.03679.49
7.4.100.0580.04179.49
7.4.90.0770.03379.70
7.4.80.0790.06079.73
7.4.70.0770.04679.51
7.4.60.0600.04179.53
7.4.50.0100.02279.63
7.4.40.0260.02979.40
7.4.30.0700.04179.46
7.4.00.0280.03578.08
7.3.330.0740.042135.97
7.3.320.0570.037136.14
7.3.310.0240.02079.28
7.3.300.0280.01879.22
7.3.290.0840.05279.20
7.3.280.0570.05779.22
7.3.270.0790.03079.31
7.3.260.0580.05579.45
7.3.250.0700.03979.48
7.3.240.0800.04579.38
7.3.230.0670.04579.20
7.3.210.0630.03379.25
7.3.200.0500.06779.18
7.3.190.0550.07579.16
7.3.180.0790.02379.54
7.3.170.0650.03979.29
7.3.160.0580.04479.34
7.3.120.0400.02077.81
7.2.330.0600.05079.72
7.2.320.0620.06479.46
7.2.310.0610.03779.76
7.2.300.0640.06579.69
7.2.290.0480.05479.48
7.2.60.2500.01678.74
7.1.200.0910.03477.61
7.1.70.1650.03078.84
7.1.60.0130.05278.87
7.1.50.0170.02478.53
7.1.00.0170.09384.18
7.0.200.9560.03078.09
7.0.140.0100.09784.00
7.0.60.0370.05083.17
7.0.50.0330.09080.95
7.0.40.0270.10320.30
7.0.30.0370.10020.06
7.0.20.0300.06020.26
7.0.10.0100.08320.05
7.0.00.0200.10320.05
5.6.280.0230.11785.42
5.6.210.0400.11785.12
5.6.200.0300.06082.35
5.6.190.0170.07784.82
5.6.180.0700.09784.79
5.6.170.0500.07784.87
5.6.160.0270.07784.82
5.6.150.0270.12782.57
5.6.140.0230.11782.48
5.6.130.0300.06082.58
5.6.120.0230.13085.38
5.6.110.0530.09385.38
5.6.100.0300.12385.38
5.6.90.0370.10785.34
5.6.80.0400.11784.89
5.5.350.0330.07084.82
5.5.340.0130.07382.35
5.5.330.0370.11784.42
5.5.320.0370.06384.63
5.5.310.0370.11784.53
5.5.300.0230.08082.33
5.5.290.0300.11382.44
5.5.280.0330.09085.28
5.5.270.0170.07085.16
5.5.260.0470.09085.38
5.5.250.0530.12785.12
5.5.240.0170.07384.45
5.4.450.0930.09783.77
5.4.440.1330.10783.69
5.4.430.0470.09783.89
5.4.420.0770.08083.83
5.4.410.0600.13083.57
5.4.400.0630.08083.20
5.4.390.0400.11383.27
5.4.380.0800.09383.20
5.4.370.0530.09783.11
5.4.360.0670.08783.32
5.4.350.0330.11383.11
5.4.340.0400.11383.07
5.4.320.0230.07177.05
5.4.310.0140.08777.05
5.4.300.0310.06977.05
5.4.290.0180.07477.05
5.4.280.0210.07176.95
5.4.270.0630.07383.30
5.4.260.0430.09383.32
5.4.250.0630.08783.32
5.4.240.0400.12382.99
5.4.230.0430.09383.30
5.4.220.0500.09783.37
5.4.210.0600.11783.35
5.4.200.0570.12083.27
5.4.190.0500.08783.14
5.4.180.0430.11083.15
5.4.170.0470.10083.26
5.4.160.0630.11383.24
5.4.150.0530.09783.11
5.4.140.0600.11780.83
5.4.130.0400.10380.82
5.4.120.0330.10080.71
5.4.110.0370.10780.90
5.4.100.0430.10380.79
5.4.90.0700.13080.80
5.4.80.0430.09380.80
5.4.70.0500.13080.79
5.4.60.0330.11780.70
5.4.50.0230.12380.76
5.4.40.0430.09380.75
5.4.30.0500.08080.87
5.4.20.0600.09380.76
5.4.10.0500.11080.90
5.4.00.0600.10080.27
5.3.290.0270.07076.05
5.3.280.0530.14377.60
5.3.270.0400.13077.54
5.3.260.0270.11077.64
5.3.250.0670.09377.71
5.3.240.0400.12077.45
5.3.230.0630.13777.80
5.3.220.0530.10377.56
5.3.210.0270.12777.72
5.3.200.0500.16077.61
5.3.190.0570.08777.60
5.3.180.0530.09077.76
5.3.170.0470.09077.76
5.3.160.0500.11077.67
5.3.150.0500.11777.56
5.3.140.0330.10377.64
5.3.130.0530.15077.56
5.3.120.0270.11077.40
5.3.110.0400.11077.68
5.3.100.0370.09777.19
5.3.90.0570.13776.93
5.3.80.0430.11377.14
5.3.70.0400.09776.80
5.3.60.0470.10377.12
5.3.50.0600.08776.88
5.3.40.0400.14777.35
5.3.30.0530.13077.00
5.3.20.0330.10076.78
5.3.10.0670.10377.04
5.3.00.0430.09076.41
5.2.170.0230.06328.86
5.2.160.0170.06328.68
5.2.150.0130.05728.95
5.2.140.0170.05028.91
5.2.130.0170.06728.99
5.2.120.0130.05328.88
5.2.110.0170.05028.90
5.2.100.0170.04729.00
5.2.90.0130.05328.82
5.2.80.0300.06728.96
5.2.70.0200.04728.91
5.2.60.0170.05328.75
5.2.50.0300.04728.77
5.2.40.0170.08328.78
5.2.30.0200.05028.95
5.2.20.0200.06028.77
5.2.10.0200.05029.93
5.2.00.0170.05728.67
5.1.60.0130.05330.78
5.1.50.0130.06730.88
5.1.40.0200.05730.87
5.1.30.0200.04731.14
5.1.20.0100.06031.16
5.1.10.0100.06330.88
5.1.00.0100.08330.95
5.0.50.0170.04330.00
5.0.40.0270.04329.80
5.0.30.0270.05329.89
5.0.20.0270.03329.65
5.0.10.0230.04029.57
5.0.00.0230.09363.13
4.4.90.0000.0235.97
4.4.80.0070.0175.93
4.4.70.0030.0235.95
4.4.60.0000.0335.93
4.4.50.0070.0175.93
4.4.40.0100.0375.93
4.4.30.0030.0305.93
4.4.20.0000.0275.93
4.4.10.0000.0335.97
4.4.00.0100.0275.93
4.3.110.0030.0205.93
4.3.100.0030.0305.93
4.3.90.0070.0275.93
4.3.80.0070.0305.93
4.3.70.0030.0205.93
4.3.60.0030.0175.93
4.3.50.0030.0305.93
4.3.40.0070.0305.93
4.3.30.0030.0205.93
4.3.20.0030.0305.93
4.3.10.0030.0205.93
4.3.00.0070.0176.95

preferences:
58.77 ms | 400 KiB | 5 Q