3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $foo = 1; } $a = new A; $b = $a; // $a and $b are copies of the same identifier $b->foo = 2; echo $a->foo."<br />"; // 2 $c = new A; $d = &$c; // $c and $d are references $d->foo = 2; echo $c->foo."<br />"; // 2

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.0120.00918.26
8.3.50.0120.00521.20
8.3.40.0110.00418.68
8.3.30.0120.00320.17
8.3.20.0140.00320.27
8.3.10.0020.00521.09
8.3.00.0040.00422.52
8.2.180.0110.00716.46
8.2.170.0130.00622.96
8.2.160.0100.01022.09
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0000.00926.16
8.2.120.0040.00420.75
8.2.110.0060.00319.33
8.2.100.0080.00317.72
8.2.90.0080.00019.14
8.2.80.0090.00017.97
8.2.70.0050.00317.38
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0060.00319.32
8.2.20.0030.00517.72
8.2.10.0040.00417.49
8.2.00.0080.00017.54
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0040.00423.96
8.1.230.0080.00320.87
8.1.220.0000.00818.77
8.1.210.0060.00318.99
8.1.200.0060.00317.35
8.1.190.0050.00317.55
8.1.180.0030.00618.10
8.1.170.0060.00318.46
8.1.160.0020.00518.90
8.1.150.0050.00318.65
8.1.140.0040.00417.38
8.1.130.0030.00617.88
8.1.120.0000.00717.46
8.1.110.0040.00317.51
8.1.100.0000.00817.50
8.1.90.0000.00717.44
8.1.80.0000.00717.43
8.1.70.0040.00417.46
8.1.60.0000.00917.58
8.1.50.0070.00017.49
8.1.40.0000.00717.56
8.1.30.0050.00217.50
8.1.20.0040.00417.69
8.1.10.0000.00817.59
8.1.00.0050.00217.50
8.0.300.0040.00419.95
8.0.290.0070.00017.16
8.0.280.0030.00318.32
8.0.270.0000.00717.18
8.0.260.0080.00016.73
8.0.250.0000.00717.00
8.0.240.0080.00016.83
8.0.230.0000.00716.91
8.0.220.0040.00416.88
8.0.210.0030.00316.99
8.0.200.0030.00316.82
8.0.190.0000.00816.99
8.0.180.0040.00416.88
8.0.170.0000.00716.94
8.0.160.0030.00316.87
8.0.150.0000.00816.89
8.0.140.0070.00016.76
8.0.130.0060.00013.32
8.0.120.0050.00216.86
8.0.110.0040.00416.89
8.0.100.0000.00717.01
8.0.90.0070.00016.89
8.0.80.0140.00316.84
8.0.70.0000.00717.01
8.0.60.0070.00016.82
8.0.50.0050.00216.87
8.0.30.0120.00717.06
8.0.20.0110.01017.40
8.0.10.0000.00716.83
8.0.00.0080.01016.67
7.4.330.0020.00216.85
7.4.320.0000.00616.50
7.4.300.0030.00316.56
7.4.290.0030.00316.48
7.4.280.0030.00716.47
7.4.270.0060.00016.39
7.4.260.0030.00313.22
7.4.250.0040.00416.46
7.4.240.0020.00516.55
7.4.230.0030.00316.65
7.4.220.0100.01416.37
7.4.210.0080.00816.48
7.4.200.0040.00416.59
7.4.190.0000.00716.34
7.4.160.0130.00416.61
7.4.150.0030.01317.40
7.4.140.0190.01717.86
7.4.130.0070.01016.53
7.4.120.0060.01016.43
7.4.110.0000.01716.48
7.4.100.0140.00416.40
7.4.90.0140.00316.38
7.4.80.0120.01419.39
7.4.70.0100.00616.33
7.4.60.0120.00916.56
7.4.50.0040.00416.41
7.4.40.0070.01022.77
7.4.30.0060.00916.33
7.4.00.0070.01014.70
7.3.330.0000.00513.25
7.3.320.0030.00313.07
7.3.310.0070.00016.12
7.3.300.0000.00716.17
7.3.290.0080.00516.37
7.3.280.0080.01216.26
7.3.270.0100.00717.40
7.3.260.0070.01418.24
7.3.250.0090.00816.47
7.3.240.0090.00616.25
7.3.230.0030.01316.47
7.3.210.0120.00616.68
7.3.200.0060.01519.39
7.3.190.0070.01016.56
7.3.180.0130.01016.29
7.3.170.0070.01316.27
7.3.160.0060.01216.50
7.3.120.0070.00715.05
7.2.330.0110.00616.33
7.2.320.0040.01816.60
7.2.310.0060.01416.51
7.2.300.0100.00716.67
7.2.290.0070.01616.52
7.2.00.0100.00719.16
7.1.100.0230.01117.19
7.1.70.0030.00917.16
7.1.60.0170.00719.17
7.1.50.0030.01316.99
7.1.00.0000.03722.28
7.0.200.0100.00316.82
7.0.140.0030.07321.99
7.0.60.0270.06719.78
7.0.50.0000.05317.83
7.0.40.0230.07020.09
7.0.30.0300.07320.33
7.0.20.0370.04320.09
7.0.10.0130.08320.26
7.0.00.0130.06720.22
5.6.280.0030.07320.88
5.6.210.0070.08020.60
5.6.200.0030.06018.21
5.6.190.0170.06320.61
5.6.180.0200.04320.63
5.6.170.0200.05720.56
5.6.160.0000.06020.55
5.6.150.0070.04718.15
5.6.140.0070.03718.29
5.6.130.0130.08018.26
5.6.120.0030.09021.00
5.6.110.0170.05321.00
5.6.100.0130.06321.13
5.6.90.0030.04321.10
5.6.80.0030.08020.37
5.5.350.0200.04720.41
5.5.340.0000.09017.97
5.5.330.0070.08320.21
5.5.320.0430.07720.30
5.5.310.0330.07020.28
5.5.300.0100.07017.98
5.5.290.0070.07017.95
5.5.280.0030.04320.75
5.5.270.0070.07320.76
5.5.260.0000.04320.89
5.5.250.0070.03720.46
5.5.240.0130.03720.20
5.4.450.0230.08319.57
5.4.440.0230.05319.45
5.4.430.0300.07019.36
5.4.420.0270.07319.54
5.4.410.0330.04319.36
5.4.400.0430.06019.09
5.4.390.0230.08019.18
5.4.380.0300.07019.07
5.4.370.0370.03719.22
5.4.360.0300.07319.15
5.4.350.0270.07719.13
5.4.340.0230.05718.95
5.4.320.0500.05318.99
5.4.310.0330.06018.95
5.4.300.0370.05319.15
5.4.290.0230.05018.94
5.4.280.0370.06719.19
5.4.270.0300.03319.08
5.4.260.0300.05719.06
5.4.250.0370.04318.94
5.4.240.0370.03019.08
5.4.230.0230.04319.30
5.4.220.0330.07018.84
5.4.210.0230.04719.23
5.4.200.0300.07019.16
5.4.190.0370.06719.21
5.4.180.0230.04319.15
5.4.170.0370.02319.13
5.4.160.0300.04319.22
5.4.150.0300.07318.97
5.4.140.0300.06316.47
5.4.130.0200.03316.34
5.4.120.0130.04016.51
5.4.110.0200.03316.37
5.4.100.0130.04016.19
5.4.90.0170.03716.46
5.4.80.0230.03016.35
5.4.70.0130.04316.23
5.4.60.0270.03716.43
5.4.50.0130.04016.19
5.4.40.0200.03316.53
5.4.30.0270.03016.39
5.4.20.0170.03316.16
5.4.10.0200.03316.24
5.4.00.0200.03015.81
5.3.290.0230.04314.75
5.3.280.0300.06314.64
5.3.270.0200.04014.61
5.3.260.0230.05314.57
5.3.250.0370.03014.50
5.3.240.0170.04014.52
5.3.230.0170.03714.81
5.3.220.0200.03314.53
5.3.210.0170.04014.64
5.3.200.0230.04014.78
5.3.190.0100.05014.53
5.3.180.0130.04014.48
5.3.170.0170.04714.57
5.3.160.0230.03314.46
5.3.150.0130.04014.54
5.3.140.0200.03714.52
5.3.130.0200.03314.54
5.3.120.0270.03314.46
5.3.110.0170.04014.63
5.3.100.0100.04313.89
5.3.90.0230.03314.00
5.3.80.0270.02713.93
5.3.70.0200.03314.10
5.3.60.0170.04013.90
5.3.50.0200.03313.81
5.3.40.0230.03713.86
5.3.30.0130.04013.98
5.3.20.0200.03313.59
5.3.10.0130.04013.68
5.3.00.0230.03713.54
5.2.170.0130.03012.06
5.2.160.0200.02312.06
5.2.150.0170.03312.06
5.2.140.0200.02312.06
5.2.130.0130.03312.06
5.2.120.0270.01712.06
5.2.110.0100.03312.06
5.2.100.0170.02712.06
5.2.90.0170.03012.06
5.2.80.0130.03012.06
5.2.70.0200.02312.06
5.2.60.0200.02312.06
5.2.50.0130.03012.06
5.2.40.0130.02712.06
5.2.30.0170.02312.06
5.2.20.0100.03012.06
5.2.10.0200.04312.06
5.2.00.0170.03012.06
5.1.60.0170.04312.06
5.1.50.0200.03312.06
5.1.40.0300.02012.06
5.1.30.0130.05012.06
5.1.20.0200.05012.06
5.1.10.0300.04312.06
5.1.00.0270.04312.06
5.0.50.0070.04712.06
5.0.40.0130.04012.06
5.0.30.0100.05712.06
5.0.20.0130.03312.06
5.0.10.0130.04012.06
5.0.00.0130.05012.06
4.4.90.0030.01712.06
4.4.80.0030.01712.06
4.4.70.0070.02312.06
4.4.60.0070.02012.06
4.4.50.0030.02312.06
4.4.40.0130.02012.06
4.4.30.0130.01312.06
4.4.20.0130.03712.06
4.4.10.0200.02312.06
4.4.00.0100.05312.06
4.3.110.0070.02712.06
4.3.100.0130.03012.06
4.3.90.0100.02312.06
4.3.80.0130.04712.06
4.3.70.0100.03012.06
4.3.60.0130.02312.06
4.3.50.0070.03312.06
4.3.40.0100.04312.06
4.3.30.0030.03012.06
4.3.20.0100.02012.06
4.3.10.0030.02312.06
4.3.00.0070.03712.06

preferences:
39.62 ms | 401 KiB | 5 Q