3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public $a = 'azerty'; function test($a = 'bug') { $this->this = &$this; $this->a = $a; $this->this = new a(); echo $this->a; } } $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.0180.00318.51
8.3.50.0130.00622.09
8.3.40.0150.00018.84
8.3.30.0110.00319.09
8.3.20.0000.00720.35
8.3.10.0000.00821.97
8.3.00.0000.00822.44
8.2.180.0180.00016.63
8.2.170.0170.00322.96
8.2.160.0120.00620.74
8.2.150.0090.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0050.00319.36
8.2.110.0060.00322.02
8.2.100.0040.00719.51
8.2.90.0000.00719.09
8.2.80.0050.00318.03
8.2.70.0060.00317.50
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0030.00618.16
8.2.30.0030.00518.04
8.2.20.0080.00017.65
8.2.10.0050.00319.36
8.2.00.0040.00417.66
8.1.280.0100.00725.92
8.1.270.0050.00322.05
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.71
8.1.230.0080.00419.29
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0000.00817.28
8.1.180.0060.00318.10
8.1.170.0040.00418.50
8.1.160.0040.00421.96
8.1.150.0000.00718.63
8.1.140.0040.00417.39
8.1.130.0000.00917.21
8.1.120.0040.00417.39
8.1.110.0000.00717.37
8.1.100.0050.00317.27
8.1.90.0030.00317.35
8.1.80.0040.00417.35
8.1.70.0030.00317.34
8.1.60.0080.00317.46
8.1.50.0020.00517.40
8.1.40.0000.00717.47
8.1.30.0070.00017.61
8.1.20.0000.00817.51
8.1.10.0080.00017.59
8.1.00.0000.00717.47
8.0.300.0000.00718.77
8.0.290.0000.00817.05
8.0.280.0070.00018.49
8.0.270.0070.00017.16
8.0.260.0040.00416.81
8.0.250.0040.00416.92
8.0.240.0000.00816.81
8.0.230.0030.00316.86
8.0.220.0040.00416.89
8.0.210.0030.00316.86
8.0.200.0000.00816.91
8.0.190.0030.00716.84
8.0.180.0040.00416.86
8.0.170.0040.00416.77
8.0.160.0000.00716.87
8.0.150.0030.00316.72
8.0.140.0080.00016.80
8.0.130.0070.00013.29
8.0.120.0040.00416.79
8.0.110.0000.00716.78
8.0.100.0040.00416.77
8.0.90.0000.00716.62
8.0.80.0090.00616.71
8.0.70.0030.00516.87
8.0.60.0000.00716.66
8.0.50.0000.00816.80
8.0.30.0090.01017.06
8.0.20.0130.00617.40
8.0.10.0070.00016.74
8.0.00.0110.00816.84
7.4.330.0000.00615.00
7.4.320.0060.00016.49
7.4.300.0000.00716.64
7.4.290.0070.00016.52
7.4.280.0050.00216.49
7.4.270.0030.00316.64
7.4.260.0030.00316.43
7.4.250.0000.00716.49
7.4.240.0030.00416.39
7.4.230.0000.00716.34
7.4.220.0110.00616.53
7.4.210.0120.00316.46
7.4.200.0070.00016.57
7.4.190.0000.00616.68
7.4.160.0130.01016.71
7.4.150.0070.01117.40
7.4.140.0130.00617.86
7.4.130.0120.00816.54
7.4.120.0120.00516.51
7.4.110.0150.00916.59
7.4.100.0070.01416.36
7.4.90.0100.01316.58
7.4.80.0130.00519.39
7.4.70.0070.01016.57
7.4.60.0060.01016.35
7.4.50.0030.00316.17
7.4.40.0030.00822.77
7.4.30.0120.00416.40
7.4.00.0070.01015.04
7.3.330.0030.00613.25
7.3.320.0050.00013.30
7.3.310.0020.00516.20
7.3.300.0030.00316.17
7.3.290.0090.00616.24
7.3.280.0120.00416.24
7.3.270.0090.00617.40
7.3.260.0060.01216.28
7.3.250.0130.00816.32
7.3.240.0070.01016.46
7.3.230.0060.01016.39
7.3.210.0090.00916.29
7.3.200.0090.00919.39
7.3.190.0030.01216.46
7.3.180.0060.00916.33
7.3.170.0060.00916.27
7.3.160.0100.00716.39
7.3.120.0030.01314.94
7.2.330.0080.00916.86
7.2.320.0080.01416.75
7.2.310.0070.01016.68
7.2.300.0190.00816.38
7.2.290.0170.00016.71
7.2.80.0030.01016.71
7.2.60.0060.00816.77
7.2.00.0030.01219.18
7.1.200.0070.00415.54
7.1.100.0040.00717.74
7.1.70.0040.00417.18
7.1.60.0090.01619.82
7.1.50.0080.00817.07
7.1.00.0130.06322.33
7.0.200.0100.00716.80
7.0.140.0000.07721.90
7.0.60.0070.04019.79
7.0.50.0170.07017.85
7.0.40.0100.05720.21
7.0.30.0230.05020.30
7.0.20.0230.05720.05
7.0.10.0000.06020.19
7.0.00.0100.05020.05
5.6.280.0030.07321.04
5.6.210.0070.08320.47
5.6.200.0030.04018.14
5.6.190.0070.04020.51
5.6.180.0400.04720.35
5.6.170.0230.03720.57
5.6.160.0130.04320.46
5.6.150.0130.06018.16
5.6.140.0000.05318.14
5.6.130.0030.08018.16
5.6.120.0170.06720.99
5.6.110.0030.06720.98
5.6.100.0030.05320.95
5.6.90.0130.07020.98
5.6.80.0030.06720.38
5.5.350.0200.07720.29
5.5.340.0030.05718.03
5.5.330.0070.07020.25
5.5.320.0170.04020.36
5.5.310.0230.06020.23
5.5.300.0130.05018.02
5.5.290.0030.08317.98
5.5.280.0100.08720.88
5.5.270.0030.04020.75
5.5.260.0100.08320.64
5.5.250.0030.09020.78
5.5.240.0270.07320.28
5.4.450.0770.05319.58
5.4.440.0100.05719.46
5.4.430.0100.05319.39
5.4.420.0200.04319.32
5.4.410.0130.05019.08
5.4.400.0030.05718.88
5.4.390.0170.04318.79
5.4.380.0170.04718.75
5.4.370.1000.04318.75
5.4.360.0700.06018.79
5.4.350.0730.06718.56
5.4.340.1200.06018.76
5.4.320.0070.04412.50
5.4.310.0060.04912.50
5.4.300.0030.04812.50
5.4.290.0060.04312.50
5.4.280.0070.03712.39
5.4.270.0100.07018.97
5.4.260.0100.05719.02
5.4.250.0170.07018.99
5.4.240.0170.05018.94
5.4.230.0030.08018.99
5.4.220.0070.07018.83
5.4.210.0130.04718.79
5.4.200.0130.04718.91
5.4.190.0070.07718.83
5.4.180.0100.05718.76
5.4.170.0100.05318.94
5.4.160.0130.04718.79
5.4.150.0130.06318.78
5.4.140.0070.05716.42
5.4.130.0170.04016.49
5.4.120.0070.05016.34
5.4.110.0070.05316.55
5.4.100.0130.05016.37
5.4.90.0130.05716.47
5.4.80.0130.04716.47
5.4.70.0200.06016.36
5.4.60.0070.05716.50
5.4.50.0130.04316.47
5.4.40.0170.06016.39
5.4.30.0230.03716.38
5.4.20.0300.04016.34
5.4.10.0200.06016.30
5.4.00.0030.05015.94
5.3.290.0110.04612.80
5.3.280.0070.05014.58
5.3.270.0130.07014.59
5.3.260.0200.06014.78
5.3.250.0130.07014.67
5.3.240.0170.04314.78
5.3.230.0030.05714.50
5.3.220.0070.07714.39
5.3.210.0030.06714.60
5.3.200.0170.06714.73
5.3.190.0100.05714.57
5.3.180.0100.05014.74
5.3.170.0100.04714.64
5.3.160.0130.06314.78
5.3.150.0070.06014.64
5.3.140.0200.05014.53
5.3.130.0100.05314.63
5.3.120.0100.05014.68
5.3.110.0130.07014.68
5.3.100.0070.05013.94
5.3.90.0030.06714.15
5.3.80.0100.05314.10
5.3.70.0100.04714.08
5.3.60.0030.07014.01
5.3.50.0030.05714.03
5.3.40.0170.06014.04
5.3.30.0130.05013.99
5.3.20.0200.05313.52
5.3.10.0130.04713.87
5.3.00.0170.04713.79
5.2.170.0130.03311.05
5.2.160.0070.04711.23
5.2.150.0130.05311.11
5.2.140.0000.04711.11
5.2.130.0170.04311.08
5.2.120.0030.06010.93
5.2.110.0030.04311.28
5.2.100.0070.03711.19
5.2.90.0000.05011.06
5.2.80.0070.05311.09
5.2.70.0030.06011.17
5.2.60.0000.04711.04
5.2.50.0300.03311.20
5.2.40.0100.04710.91
5.2.30.0100.04011.13
5.2.20.0100.05010.93
5.2.10.0100.04310.76
5.2.00.0170.04310.71
5.1.60.0030.0339.99
5.1.50.0030.0479.83
5.1.40.0030.04710.07
5.1.30.0070.03310.49
5.1.20.0030.04010.44
5.1.10.0100.03710.12
5.1.00.0000.05710.04
5.0.50.0000.0408.64
5.0.40.0070.0308.41
5.0.30.0100.0408.38
5.0.20.0030.0278.25
5.0.10.0100.0208.00
5.0.00.0000.0538.21
4.4.90.0070.0276.87
4.4.80.0070.0276.87
4.4.70.0030.0206.87
4.4.60.0070.0206.87
4.4.50.0030.0206.87
4.4.40.0000.0376.87
4.4.30.0070.0236.87
4.4.20.0000.0276.87
4.4.10.0030.0306.87
4.4.00.0030.0336.87
4.3.110.0030.0206.87
4.3.100.0000.0236.87
4.3.90.0070.0206.87
4.3.80.0000.0336.87
4.3.70.0000.0206.87
4.3.60.0100.0206.87
4.3.50.0030.0306.87
4.3.40.0000.0376.87
4.3.30.0030.0206.87
4.3.20.0000.0306.87
4.3.10.0030.0206.87
4.3.00.0170.0176.95

preferences:
58.78 ms | 401 KiB | 5 Q