3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $a = 'azerty'; function test($a) { $this->this = &$this; $this->a = $a; // $this->this = new a(0); } } $a = new a(); $a->test(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.0030.01718.80
8.3.50.0090.00522.11
8.3.40.0120.00319.02
8.3.30.0140.00019.04
8.3.20.0070.00020.26
8.3.10.0040.00421.96
8.3.00.0080.00022.46
8.2.180.0100.01016.75
8.2.170.0070.01022.96
8.2.160.0130.00320.56
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0110.00626.16
8.2.120.0040.00417.50
8.2.110.0060.00322.16
8.2.100.0110.00317.84
8.2.90.0040.00419.08
8.2.80.0050.00317.97
8.2.70.0080.00017.38
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0040.00418.11
8.2.20.0050.00217.76
8.2.10.0000.00819.28
8.2.00.0000.00717.55
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00024.02
8.1.230.0090.00319.14
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00617.35
8.1.190.0030.00517.28
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0000.00722.01
8.1.150.0070.00018.48
8.1.140.0000.00817.29
8.1.130.0000.00717.75
8.1.120.0000.00717.42
8.1.110.0040.00417.39
8.1.100.0050.00317.44
8.1.90.0040.00417.40
8.1.80.0000.00717.27
8.1.70.0030.00317.41
8.1.60.0000.00917.47
8.1.50.0050.00317.36
8.1.40.0040.00417.53
8.1.30.0040.00417.46
8.1.20.0030.00517.61
8.1.10.0030.00617.53
8.1.00.0040.00417.54
8.0.300.0070.00018.77
8.0.290.0030.00617.05
8.0.280.0000.00818.35
8.0.270.0000.00717.26
8.0.260.0030.00316.82
8.0.250.0030.00317.05
8.0.240.0000.00716.84
8.0.230.0030.00316.75
8.0.220.0000.00716.71
8.0.210.0070.00016.70
8.0.200.0000.00616.79
8.0.190.0000.00816.75
8.0.180.0000.00716.86
8.0.170.0080.00016.73
8.0.160.0000.00716.82
8.0.150.0040.00416.76
8.0.140.0050.00316.62
8.0.130.0050.00313.24
8.0.120.0030.00616.75
8.0.110.0050.00216.71
8.0.100.0080.00016.86
8.0.90.0030.00316.78
8.0.80.0090.00616.81
8.0.70.0040.00416.65
8.0.60.0030.00516.62
8.0.50.0040.00416.86
8.0.30.0100.01217.29
8.0.20.0120.00917.40
8.0.10.0050.00216.77
8.0.00.0100.00816.78
7.4.330.0020.00215.00
7.4.320.0060.00016.36
7.4.300.0060.00016.39
7.4.290.0000.00716.60
7.4.280.0070.00016.51
7.4.270.0000.00716.50
7.4.260.0080.00316.50
7.4.250.0040.00416.40
7.4.240.0020.00516.53
7.4.230.0000.00716.39
7.4.220.0070.01116.48
7.4.210.0070.00716.52
7.4.200.0000.00716.70
7.4.190.0040.00416.68
7.4.160.0110.00416.45
7.4.150.0110.00717.40
7.4.140.0060.01317.86
7.4.130.0090.00916.55
7.4.120.0180.00016.51
7.4.110.0000.01716.45
7.4.100.0140.01016.41
7.4.90.0110.00516.46
7.4.80.0070.01019.39
7.4.70.0100.00716.52
7.4.60.0130.01016.55
7.4.50.0040.00416.22
7.4.40.0030.01222.77
7.4.30.0040.01216.40
7.4.00.0040.01514.70
7.3.330.0030.00313.00
7.3.320.0030.00313.09
7.3.310.0030.00316.18
7.3.300.0000.00716.25
7.3.290.0040.01116.19
7.3.280.0080.00816.23
7.3.270.0100.01317.40
7.3.260.0060.01216.36
7.3.250.0130.00816.36
7.3.240.0120.00916.32
7.3.230.0110.00816.48
7.3.210.0100.00616.33
7.3.200.0030.01319.39
7.3.190.0060.01216.38
7.3.180.0100.00716.32
7.3.170.0110.01116.35
7.3.160.0060.01016.34
7.3.120.0000.01714.65
7.3.10.0070.00716.52
7.3.00.0030.01316.38
7.2.330.0060.01116.60
7.2.320.0140.01316.81
7.2.310.0050.01316.41
7.2.300.0100.01016.90
7.2.290.0100.00716.73
7.2.130.0040.00816.59
7.2.120.0070.00716.68
7.2.110.0080.00416.41
7.2.100.0030.01016.41
7.2.90.0070.01016.47
7.2.80.0030.01216.64
7.2.70.0100.00616.54
7.2.60.0090.00516.71
7.2.50.0060.00316.80
7.2.40.0030.00716.53
7.2.30.0040.01416.80
7.2.20.0070.00316.81
7.2.10.0070.00716.73
7.2.00.0020.01318.32
7.1.250.0040.00815.34
7.1.200.0030.01015.73
7.1.100.0040.00718.04
7.1.70.0000.01417.21
7.1.60.0000.01017.35
7.1.50.0070.01516.71
7.1.00.0030.07722.36
7.0.200.0110.00716.67
7.0.140.0030.04722.00
7.0.60.0070.09019.92
7.0.50.0070.03717.82
7.0.40.0130.03720.20
7.0.30.0330.07720.06
7.0.20.0100.07720.06
7.0.10.0270.06720.10
7.0.00.0070.08020.25
5.6.280.0030.07321.07
5.6.210.0070.08320.77
5.6.200.0030.04018.29
5.6.190.0070.08720.61
5.6.180.3570.03720.48
5.6.170.0300.06720.57
5.6.160.0030.05720.52
5.6.150.0170.06718.18
5.6.140.0100.07718.18
5.6.130.0100.08318.15
5.6.120.0070.04321.14
5.6.110.0100.08321.01
5.6.100.0100.06021.02
5.6.90.0030.04020.95
5.6.80.0130.07020.51
5.6.70.0200.07320.38
5.5.350.0000.04320.45
5.5.340.0030.03718.07
5.5.330.0030.04020.49
5.5.320.0300.07320.27
5.5.310.0330.07320.26
5.5.300.0000.04318.08
5.5.290.0100.07718.02
5.5.280.0030.06020.73
5.5.270.0030.07720.76
5.5.260.0100.07320.77
5.5.250.0070.07320.69
5.5.240.0170.06720.33
5.4.450.0130.05719.47
5.4.440.0700.04719.55
5.4.430.0100.06719.38
5.4.420.0070.05719.61
5.4.410.0100.07719.53
5.4.400.0870.00018.67
5.4.390.0870.00018.62
5.4.380.0170.06018.79
5.4.370.0400.04718.84
5.4.360.0270.05018.60
5.4.350.0230.05718.71
5.4.340.0300.05718.77
5.4.320.0130.04112.50
5.4.310.0070.04212.50
5.4.300.0030.04412.50
5.4.290.0110.03212.50
5.4.280.0090.03212.39
5.4.270.0200.06018.93
5.4.260.0030.07018.75
5.4.250.0130.05018.88
5.4.240.0070.05718.73
5.4.230.0200.04318.92
5.4.220.0100.05318.78
5.4.210.0100.05019.01
5.4.200.0130.04718.75
5.4.190.0200.06318.83
5.4.180.0100.05018.65
5.4.170.0130.06718.75
5.4.160.0170.04719.00
5.4.150.0100.07718.70
5.4.140.0070.05316.30
5.4.130.0070.05016.50
5.4.120.0170.06316.50
5.4.110.0030.05316.50
5.4.100.0070.05016.30
5.4.90.0200.03716.44
5.4.80.0200.04316.49
5.4.70.0070.05016.29
5.4.60.0000.06016.48
5.4.50.0130.05016.45
5.4.40.0100.04716.49
5.4.30.0070.07316.48
5.4.20.0070.07016.63
5.4.10.0200.04716.31
5.4.00.0070.07015.67
5.3.290.0060.04212.80
5.3.280.0070.05314.68
5.3.270.0070.05714.58
5.3.260.0130.06714.69
5.3.250.0070.07014.62
5.3.240.0130.04714.69
5.3.230.0130.04714.64
5.3.220.0100.05014.73
5.3.210.0100.05014.66
5.3.200.0070.05714.63
5.3.190.0130.04714.64
5.3.180.0100.05714.73
5.3.170.0000.05714.55
5.3.160.0030.07314.72
5.3.150.0030.05314.56
5.3.140.0070.05014.54
5.3.130.0100.04714.38
5.3.120.0130.04714.71
5.3.110.0070.05314.61
5.3.100.0000.05713.86
5.3.90.0170.06314.01
5.3.80.0300.04714.11
5.3.70.0170.05314.09
5.3.60.0070.06013.99
5.3.50.0100.04714.03
5.3.40.0100.05313.79
5.3.30.0100.04713.81
5.3.20.0100.06013.53
5.3.10.0170.06313.73
5.3.00.0100.04313.62
5.2.170.0030.04311.05
5.2.160.0070.05011.11
5.2.150.0070.04011.21
5.2.140.0130.05411.20
5.2.130.0130.03311.19
5.2.120.0100.05011.18
5.2.110.0170.04711.26
5.2.100.0100.03711.18
5.2.90.0100.05311.18
5.2.80.0070.04010.92
5.2.70.0100.05011.07
5.2.60.0070.04011.01
5.2.50.0030.04011.10
5.2.40.0070.03710.97
5.2.30.0130.05010.96
5.2.20.0030.04710.96
5.2.10.0030.04310.94
5.2.00.0070.05010.70
5.1.60.0000.03710.04
5.1.50.0000.04310.23
5.1.40.0100.03710.13
5.1.30.0130.03010.41
5.1.20.0030.03710.51
5.1.10.0000.03710.12
5.1.00.0100.04310.03
5.0.50.0100.0238.52
5.0.40.0000.0408.60
5.0.30.0030.0408.26
5.0.20.0070.0238.24
5.0.10.0070.0378.36
5.0.00.0070.0508.35
4.4.90.0070.0176.96
4.4.80.0030.0236.96
4.4.70.0070.0176.96
4.4.60.0070.0206.96
4.4.50.0070.0176.96
4.4.40.0000.0476.96
4.4.30.0130.0106.96
4.4.20.0000.0236.96
4.4.10.0070.0176.96
4.4.00.0000.0336.96
4.3.110.0100.0176.96
4.3.100.0030.0206.96
4.3.90.0070.0176.96
4.3.80.0000.0336.96
4.3.70.0000.0206.96
4.3.60.0000.0236.96
4.3.50.0000.0306.96
4.3.40.0000.0406.96
4.3.30.0000.0236.96
4.3.20.0030.0206.96
4.3.10.0100.0176.96
4.3.00.0070.0307.39

preferences:
47.58 ms | 400 KiB | 5 Q