3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static $y = 1; public static function foo(&$x) { $x = &self::$y; } } $bar = 0; Test::foo($bar); echo $bar; //why is this not 1?

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.5.00.0110.00920.05
8.4.150.0010.00114.05
8.4.140.0110.00917.35
8.4.130.0120.00818.82
8.4.120.0120.00824.30
8.4.110.0120.00718.70
8.4.100.0050.00419.02
8.4.90.0110.00918.56
8.4.80.0130.00718.79
8.4.70.0070.00918.01
8.4.60.0120.00818.76
8.4.50.0140.00818.68
8.4.40.0120.00917.66
8.4.30.0100.01018.58
8.4.20.0130.00617.68
8.4.10.0080.00019.44
8.3.280.0100.01018.26
8.3.270.0130.00616.61
8.3.260.0120.00616.84
8.3.250.0110.00719.05
8.3.240.0060.00317.31
8.3.230.0110.00916.49
8.3.220.0140.00418.79
8.3.210.0130.00516.69
8.3.200.0080.00116.32
8.3.190.0040.00417.14
8.3.180.0120.00717.04
8.3.170.0140.00322.81
8.3.160.0050.00317.18
8.3.150.0110.00717.11
8.3.140.0110.00416.59
8.3.130.0100.00016.61
8.3.120.0000.00919.18
8.3.110.0070.00420.94
8.3.100.0050.00316.76
8.3.90.0000.00826.77
8.3.80.0000.00916.38
8.3.70.0160.00616.63
8.3.60.0120.00616.74
8.3.50.0110.00720.23
8.3.40.0120.00619.58
8.3.30.0070.01018.86
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.290.0100.00920.45
8.2.280.0090.01018.22
8.2.270.0090.00617.26
8.2.260.0120.00616.61
8.2.250.0150.00618.19
8.2.240.0030.00617.38
8.2.230.0050.00522.58
8.2.220.0130.01037.54
8.2.210.0080.00026.77
8.2.200.0090.00016.59
8.2.190.0070.01416.63
8.2.180.0160.00625.92
8.2.170.0100.00318.83
8.2.160.0070.01022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0110.00022.13
8.2.100.0080.00417.64
8.2.90.0000.00719.22
8.2.80.0000.00917.97
8.2.70.0030.00717.50
8.2.60.0030.00617.93
8.2.50.0000.00918.07
8.2.40.0000.00817.64
8.2.30.0040.00417.98
8.2.20.0030.00520.48
8.2.10.0040.00417.59
8.2.00.0040.00419.18
8.1.330.0100.00121.97
8.1.320.0130.00816.06
8.1.310.0030.01316.70
8.1.300.0060.00320.22
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0110.00423.82
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.98
8.1.230.0070.00418.88
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0090.00317.22
8.1.190.0080.00017.25
8.1.180.0000.00818.10
8.1.170.0040.00418.47
8.1.160.0040.00418.75
8.1.150.0000.00718.44
8.1.140.0040.00417.36
8.1.130.0030.00318.75
8.1.120.0000.00717.48
8.1.110.0040.00417.29
8.1.100.0000.00717.38
8.1.90.0000.00717.36
8.1.80.0040.00417.44
8.1.70.0000.00817.38
8.1.60.0030.00517.56
8.1.50.0030.00617.54
8.1.40.0000.00817.54
8.1.30.0030.00617.57
8.1.20.0030.00517.57
8.1.10.0000.00817.48
8.1.00.0040.00417.44
8.0.300.0000.00718.77
8.0.290.0060.00317.05
8.0.280.0070.00018.31
8.0.270.0070.00016.69
8.0.260.0030.00318.34
8.0.250.0030.00316.95
8.0.240.0040.00416.88
8.0.230.0030.00316.89
8.0.220.0070.00016.71
8.0.210.0070.00016.83
8.0.200.0070.00016.77
8.0.190.0050.00316.86
8.0.180.0000.00716.86
8.0.170.0000.00916.72
8.0.160.0040.00816.71
8.0.150.0040.00316.81
8.0.140.0030.00316.59
8.0.130.0030.00316.71
8.0.120.0070.00016.77
8.0.110.0070.00016.79
8.0.100.0040.00416.71
8.0.90.0040.00416.62
8.0.80.0050.00316.70
8.0.70.0020.00516.77
8.0.60.0070.00016.73
8.0.50.0050.00216.79
8.0.30.0070.00016.85
8.0.20.0040.00416.87
8.0.10.0040.00416.88
7.4.330.0020.00215.55
7.4.320.0000.00716.52
7.4.300.0060.00016.39
7.4.290.0000.00916.42
7.4.280.0000.00816.61
7.4.270.0020.00616.42
7.4.260.0070.00016.50
7.4.250.0040.00416.55
7.4.240.0040.00416.52
7.4.230.0060.00016.34
7.4.220.0020.00516.47
7.4.210.0000.00716.54
7.4.200.0030.00316.35
7.4.190.0030.00316.50
7.4.180.0000.00716.41
7.4.160.0000.00616.44
7.4.150.0000.00716.46
7.4.140.0040.00416.41
7.4.130.0030.00316.32
7.4.120.0000.00716.46
7.4.110.0070.00016.48
7.4.100.0040.00416.36
7.4.90.0000.00716.39
7.4.80.0030.00316.25
7.4.70.0000.00716.49
7.4.60.0040.00416.28
7.4.50.0030.00316.37
7.4.40.0030.00316.44
7.4.30.0000.00716.41
7.4.20.0000.00716.40
7.4.10.0070.00016.44
7.4.00.0000.00816.49

preferences:
29.36 ms | 403 KiB | 5 Q