3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static $i; public function test(&$arr) { var_dump(self::$i); if (!isset(self::$i)) { self::$i = &$arr[0]; } } } $arr = [1, 2, 3]; $a = new A(); $a->test($arr); $a->test($arr);

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.0110.00418.22
8.3.50.0110.01022.05
8.3.40.0090.00618.67
8.3.30.0120.00318.62
8.3.20.0070.00020.33
8.3.10.0060.00318.95
8.3.00.0120.00020.53
8.2.180.0090.00616.75
8.2.170.0030.01622.96
8.2.160.0070.00721.96
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0120.00320.95
8.2.120.0080.00026.35
8.2.110.0090.00021.01
8.2.100.0070.00418.05
8.2.90.0040.00419.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0040.00418.09
8.2.40.0040.00420.28
8.2.30.0080.00019.53
8.2.20.0040.00417.61
8.2.10.0000.00718.18
8.2.00.0030.00318.02
8.1.280.0070.00725.92
8.1.270.0070.01123.96
8.1.260.0070.00328.09
8.1.250.0000.00728.09
8.1.240.0040.00422.63
8.1.230.0000.01117.70
8.1.220.0030.00617.74
8.1.210.0080.00518.77
8.1.200.0000.00917.35
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00818.66
8.1.160.0030.00620.63
8.1.150.0000.00718.80
8.1.140.0030.00519.60
8.1.130.0000.00717.59
8.1.120.0000.00717.36
8.1.110.0000.00717.45
8.1.100.0040.00417.32
8.1.90.0080.00017.35
8.1.80.0040.00417.45
8.1.70.0060.00617.36
8.1.60.0000.00817.63
8.1.50.0000.00817.56
8.1.40.0110.00017.55
8.1.30.0040.00417.58
8.1.20.0040.00417.48
8.1.10.0080.00017.56
8.1.00.0000.00717.46
8.0.300.0050.00318.77
8.0.290.0030.00616.63
8.0.280.0000.00718.48
8.0.270.0080.00017.27
8.0.260.0000.00617.30
8.0.250.0030.00316.82
8.0.240.0000.00616.84
8.0.230.0040.00416.98
8.0.220.0070.00016.89
8.0.210.0030.00516.91
8.0.200.0070.00016.95
8.0.190.0050.00216.93
8.0.180.0030.00516.92
8.0.170.0030.00616.91
8.0.160.0060.00316.86
8.0.150.0000.00816.71
8.0.140.0040.00416.76
8.0.130.0030.00313.35
8.0.120.0000.00916.85
8.0.110.0040.00416.71
8.0.100.0050.00316.87
8.0.90.0040.00416.79
8.0.80.0120.00316.86
8.0.70.0040.00416.88
8.0.60.0040.00416.68
8.0.50.0040.00416.77
8.0.30.0060.01117.04
8.0.20.0080.01317.40
8.0.10.0000.00716.96
8.0.00.0130.00516.80
7.4.330.0000.00616.70
7.4.320.0030.00316.49
7.4.300.0060.00016.59
7.4.290.0040.00416.55
7.4.280.0000.00816.51
7.4.270.0000.00716.57
7.4.260.0030.00616.58
7.4.250.0030.00316.55
7.4.240.0070.00016.52
7.4.230.0000.00816.30
7.4.220.0060.01216.51
7.4.210.0100.00316.54
7.4.200.0030.00316.66
7.4.160.0070.01016.36
7.4.150.0090.00817.40
7.4.140.0070.01017.86
7.4.130.0070.01016.63
7.4.120.0090.00816.55
7.4.110.0060.01016.47
7.4.100.0140.00316.52
7.4.90.0130.00316.38
7.4.80.0060.01919.39
7.4.70.0100.00616.54
7.4.60.0060.01216.52
7.4.50.0030.01316.56
7.4.40.0150.00016.45
7.4.30.0080.01116.41
7.4.00.0100.00615.11
7.3.330.0020.00213.22
7.3.320.0050.00013.14
7.3.310.0000.00816.40
7.3.300.0060.00016.32
7.3.290.0000.00716.22
7.3.280.0060.01116.35
7.3.270.0090.00917.40
7.3.260.0100.00716.42
7.3.250.0170.00616.38
7.3.240.0090.00616.42
7.3.230.0100.00716.48
7.3.210.0070.01416.29
7.3.200.0030.01416.59
7.3.190.0100.00716.32
7.3.180.0070.01016.41
7.3.170.0120.00616.36
7.3.160.0060.01016.41
7.3.10.0060.00916.57
7.3.00.0010.00916.57
7.2.330.0130.01016.70
7.2.320.0090.01316.45
7.2.310.0040.01516.84
7.2.300.0070.01016.81
7.2.290.0100.00716.73
7.2.130.0070.01016.88
7.2.120.0030.00816.93
7.2.110.0050.01016.85
7.2.100.0080.00716.82
7.2.90.0040.00816.89
7.2.80.0070.00616.93
7.2.70.0070.00516.91
7.2.60.0080.00616.98
7.2.50.0050.00916.65
7.2.40.0060.00716.88
7.2.30.0040.01016.85
7.2.20.0080.00616.83
7.2.10.0060.00716.81
7.2.00.0100.00817.74
7.1.250.0050.00815.80
7.1.200.0130.00015.89
7.1.100.0070.01018.05
7.1.70.0000.01017.24
7.1.60.0060.01619.27
7.1.50.0030.01616.91
7.1.00.0130.06722.30
7.0.200.0370.01014.91
7.0.60.0170.04720.02
7.0.50.0000.04317.87
7.0.40.0070.07719.96
7.0.30.0000.04320.32
7.0.20.0370.07020.16
7.0.10.0070.08320.21
7.0.00.0100.08020.23
5.6.280.0100.05020.82
5.6.210.0200.02720.55
5.6.200.0170.07718.20
5.6.190.0200.07720.48
5.6.180.0200.06720.63
5.6.170.0170.04720.62
5.6.160.0100.08320.44
5.6.150.0100.06318.27
5.6.140.0070.07318.29
5.6.130.0000.09318.18
5.6.120.0070.08020.98
5.6.110.0100.08720.98
5.6.100.0130.06320.91
5.6.90.0130.06321.02
5.6.80.0070.06320.53
5.5.350.0370.07320.41
5.5.340.0130.06017.93
5.5.330.0070.06320.43
5.5.320.0530.04020.51
5.5.310.0200.05020.27
5.5.300.0100.03717.96
5.5.290.0100.06017.97
5.5.280.0030.05020.77
5.5.270.0000.04320.67
5.5.260.0130.07320.87
5.5.250.0070.07720.66
5.5.240.0000.08020.26

preferences:
68.11 ms | 401 KiB | 5 Q