3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $foo = 1; } $a = new A; $b = $a; // $a and $b are copies of the same identifier // ($a) = ($b) = <id> $b->foo = 2; echo $a->foo."\n"; $c = new A; $d = &$c; // $c and $d are references // ($c,$d) = <id> $d->foo = 2; echo $c->foo."\n"; $e = new A; function foo($obj) { // ($obj) = ($e) = <id> $obj->foo = 2; } foo($e); echo $e->foo."\n";

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.0100.00716.75
8.3.50.0150.00522.88
8.3.40.0120.00319.02
8.3.30.0070.00719.22
8.3.20.0040.00420.28
8.3.10.0050.00320.48
8.3.00.0080.00019.20
8.2.180.0040.01118.13
8.2.170.0070.00722.96
8.2.160.0110.00720.46
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00726.16
8.2.120.0090.00619.26
8.2.110.0080.00020.31
8.2.100.0070.00317.78
8.2.90.0000.00719.05
8.2.80.0060.00317.97
8.2.70.0050.00917.50
8.2.60.0030.00618.05
8.2.50.0030.00518.07
8.2.40.0050.00218.22
8.2.30.0040.00421.20
8.2.20.0060.00317.73
8.2.10.0070.00017.91
8.2.00.0000.00817.67
8.1.280.0120.00625.92
8.1.270.0040.00423.64
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.53
8.1.230.0090.00320.78
8.1.220.0040.00418.77
8.1.210.0030.00518.97
8.1.200.0060.00317.50
8.1.190.0000.00917.52
8.1.180.0040.00418.10
8.1.170.0030.00618.48
8.1.160.0040.00418.92
8.1.150.0000.00718.79
8.1.140.0000.00817.45
8.1.130.0000.00717.70
8.1.120.0040.00417.40
8.1.110.0080.00017.43
8.1.100.0000.00717.49
8.1.90.0040.00417.48
8.1.80.0000.00717.41
8.1.70.0070.00017.41
8.1.60.0000.00817.57
8.1.50.0000.00817.48
8.1.40.0000.00817.52
8.1.30.0000.00817.50
8.1.20.0040.00417.64
8.1.10.0040.00417.53
8.1.00.0040.00417.48
8.0.300.0000.00719.98
8.0.290.0040.00417.04
8.0.280.0030.00318.43
8.0.270.0070.00017.33
8.0.260.0040.00418.96
8.0.250.0000.00717.00
8.0.240.0040.00416.95
8.0.230.0000.00816.95
8.0.220.0030.00316.89
8.0.210.0040.00416.93
8.0.200.0030.00316.81
8.0.190.0040.00417.01
8.0.180.0040.00416.94
8.0.170.0070.00016.86
8.0.160.0050.00316.86
8.0.150.0030.00316.78
8.0.140.0040.00416.83
8.0.130.0030.00313.31
8.0.120.0030.00516.86
8.0.110.0000.00716.72
8.0.100.0000.00716.81
8.0.90.0040.00416.71
8.0.80.0030.01916.88
8.0.70.0000.00716.78
8.0.60.0000.00816.72
8.0.50.0040.00416.79
8.0.30.0070.01217.04
8.0.20.0130.00617.40
8.0.10.0020.00516.88
8.0.00.0070.01016.73
7.4.330.0020.00215.03
7.4.320.0030.00316.54
7.4.300.0000.00716.66
7.4.290.0000.00716.42
7.4.280.0000.00816.49
7.4.270.0000.00616.63
7.4.260.0090.00016.55
7.4.250.0000.00716.41
7.4.240.0020.00716.61
7.4.230.0030.00316.52
7.4.220.0060.01216.51
7.4.210.0030.01116.49
7.4.200.0000.00716.41
7.4.160.0130.00916.53
7.4.150.0100.01017.40
7.4.140.0070.01017.86
7.4.130.0100.00816.53
7.4.120.0100.00716.52
7.4.110.0030.01416.37
7.4.100.0060.01216.23
7.4.90.0060.01516.30
7.4.80.0120.00616.47
7.4.70.0110.00716.50
7.4.60.0090.00816.34
7.4.50.0030.00616.65
7.4.40.0100.00616.46
7.4.30.0030.01316.32
7.4.00.0140.00314.95
7.3.330.0070.00013.16
7.3.320.0020.00213.16
7.3.310.0030.00616.30
7.3.300.0070.00016.37
7.3.290.0090.00516.31
7.3.280.0110.00616.26
7.3.270.0110.00917.40
7.3.260.0130.00416.39
7.3.250.0080.00916.54
7.3.240.0060.01216.59
7.3.230.0100.00716.39
7.3.210.0130.00716.53
7.3.200.0170.00419.39
7.3.190.0080.01516.66
7.3.180.0070.01316.23
7.3.170.0120.00616.66
7.3.160.0080.00816.38
7.2.330.0120.00516.42
7.2.320.0030.01316.60
7.2.310.0090.00616.85
7.2.300.0100.01316.55
7.2.290.0070.01416.79
7.2.00.0040.01119.12
7.1.100.0000.00817.71
7.1.70.0000.00817.09
7.1.60.0110.01519.34
7.1.50.0030.02117.06
7.1.00.0130.06722.33
7.0.200.0040.00416.79
7.0.140.0030.03321.95
7.0.60.0130.08320.02
7.0.50.0130.07317.89
7.0.40.0070.04320.14
7.0.30.0230.06320.08
7.0.20.0400.06320.02
7.0.10.0270.08020.07
7.0.00.0130.08320.07
5.6.280.0070.07021.07
5.6.210.0130.05720.72
5.6.200.0070.07018.16
5.6.190.0170.07020.33
5.6.180.3700.03720.45
5.6.170.0270.04720.57
5.6.160.0070.04020.52
5.6.150.0170.07318.17
5.6.140.0000.04318.11
5.6.130.0070.05318.18
5.6.120.0170.05021.05
5.6.110.0100.09021.05
5.6.100.0100.08321.14
5.6.90.0130.05720.98
5.6.80.0030.04020.29
5.6.70.0400.06720.40
5.5.350.0000.04720.30
5.5.340.0070.08017.99
5.5.330.0030.04320.35
5.5.320.0100.08020.21
5.5.310.0200.04020.34
5.5.300.0030.03717.95
5.5.290.0070.06717.91
5.5.280.0070.04020.88
5.5.270.0100.03720.67
5.5.260.0030.06720.95
5.5.250.0100.07720.71
5.5.240.0100.07720.19
5.4.450.0130.04319.55
5.4.440.0800.08319.28
5.4.430.0100.04719.27
5.4.420.0030.06319.51
5.4.410.0130.05719.41
5.4.400.0100.07319.13
5.4.390.0130.05019.12
5.4.380.0170.05019.05
5.4.370.0130.05019.11
5.4.360.0230.04019.13
5.4.350.0080.03912.02
5.4.340.0060.03712.02
5.4.320.0100.03512.50
5.4.310.0060.04012.50
5.4.300.0090.03512.50
5.4.290.0050.04012.50
5.4.280.0070.03612.40
5.4.270.0120.05412.40
5.4.260.0100.03612.40
5.4.250.0070.05112.40
5.4.240.0050.03812.39
5.4.230.0050.04912.39
5.4.220.0140.03712.39
5.4.210.0110.04612.39
5.4.200.0090.03812.39
5.4.190.0050.04512.39
5.4.180.0050.04212.39
5.4.170.0100.04212.39
5.4.160.0080.03812.39
5.4.150.0130.05212.38
5.4.140.0060.04612.07
5.4.130.0130.03312.05
5.4.120.0110.05812.02
5.4.110.0070.04412.01
5.4.100.0080.04512.02
5.4.90.0080.04012.01
5.4.80.0080.04212.01
5.4.70.0040.03712.01
5.4.60.0060.04912.00
5.4.50.0070.03812.01
5.4.40.0060.03512.00
5.4.30.0050.04212.00
5.4.20.0090.04011.99
5.4.10.0060.03411.99
5.4.00.0090.03811.48
5.3.290.0050.04012.80
5.3.280.0050.03912.71
5.3.270.0090.03712.72
5.3.260.0080.03712.72
5.3.250.0040.04212.72
5.3.240.0110.03512.72
5.3.230.0070.03812.70
5.3.220.0100.03712.68
5.3.210.0060.04012.68
5.3.200.0050.04412.68
5.3.190.0080.04412.68
5.3.180.0040.04212.68
5.3.170.0100.03612.67
5.3.160.0080.03712.68
5.3.150.0110.03412.68
5.3.140.0100.03512.66
5.3.130.0100.04012.66
5.3.120.0080.04512.66
5.3.110.0050.04412.66
5.3.100.0040.04412.12
5.3.90.0070.03912.10
5.3.80.0070.04012.09
5.3.70.0060.04812.09
5.3.60.0090.03612.07
5.3.50.0060.05412.02
5.3.40.0090.04112.02
5.3.30.0080.03711.98
5.3.20.0090.03611.76
5.3.10.0090.03311.73
5.3.00.0050.03811.71
5.2.170.0050.0309.23
5.2.160.0070.0399.21
5.2.150.0050.0309.22
5.2.140.0070.0309.23
5.2.130.0060.0329.18
5.2.120.0050.0319.17
5.2.110.0090.0289.18
5.2.100.0050.0329.18
5.2.90.0030.0329.18
5.2.80.0060.0309.18
5.2.70.0090.0309.18
5.2.60.0070.0359.12
5.2.50.0070.0409.09
5.2.40.0090.0279.07
5.2.30.0040.0379.05
5.2.20.0040.0319.03
5.2.10.0050.0308.94
5.2.00.0060.0298.81
5.1.60.0050.0258.09
5.1.50.0040.0268.08
5.1.40.0050.0268.07
5.1.30.0070.0288.42
5.1.20.0060.0258.44
5.1.10.0050.0258.16
5.1.00.0060.0288.16
5.0.50.0060.0226.64
5.0.40.0010.0236.49
5.0.30.0080.0396.31
5.0.20.0030.0226.28
5.0.10.0050.0416.25
5.0.00.0080.0366.25
4.4.90.0040.0184.78
4.4.80.0040.0154.75
4.4.70.0040.0144.75
4.4.60.0030.0154.75
4.4.50.0040.0154.77
4.4.40.0030.0264.71
4.4.30.0050.0164.75
4.4.20.0050.0144.85
4.4.10.0040.0154.85
4.4.00.0030.0284.76
4.3.110.0040.0184.66
4.3.100.0040.0164.66
4.3.90.0040.0184.63
4.3.80.0040.0274.58
4.3.70.0040.0184.63
4.3.60.0050.0174.63
4.3.50.0020.0184.63
4.3.40.0020.0244.54
4.3.30.0000.0183.31
4.3.20.0000.0183.28
4.3.10.0010.0173.24
4.3.00.0030.01713.38

preferences:
49.82 ms | 401 KiB | 5 Q