3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function () use (&$ref) { return $ref = ["foo" => &$foo]; }; $a = $foo(); $ref["foo"] = 2; var_dump($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.5.30.0100.00718.90
8.5.20.0130.00721.82
8.5.10.0110.00720.26
8.5.00.0100.01220.07
8.4.180.0110.01019.71
8.4.170.0130.00819.58
8.4.160.0150.00623.58
8.4.150.0070.00716.88
8.4.140.0120.00817.82
8.4.130.0110.00917.52
8.4.120.0140.00720.60
8.4.110.0120.00818.88
8.4.100.0120.01017.70
8.4.90.0110.00922.34
8.4.80.0120.00817.95
8.4.70.0150.00517.91
8.4.60.0100.01020.21
8.4.50.0120.00822.20
8.4.40.0100.00719.66
8.4.30.0130.00617.68
8.4.20.0040.01517.86
8.4.10.0080.00417.57
8.3.300.0160.00420.84
8.3.290.0120.01018.51
8.3.280.0080.00416.27
8.3.270.0140.00616.80
8.3.260.0110.00916.46
8.3.250.0110.00818.60
8.3.240.0120.00716.48
8.3.230.0080.01216.68
8.3.220.0130.00517.17
8.3.210.0060.00718.51
8.3.200.0070.00216.30
8.3.190.0140.00517.18
8.3.180.0110.00518.51
8.3.170.0120.00617.08
8.3.160.0060.00618.23
8.3.150.0190.00018.43
8.3.140.0050.00317.25
8.3.130.0130.00318.27
8.3.120.0030.00620.65
8.3.110.0160.00320.94
8.3.100.0150.00424.06
8.3.90.0080.00326.77
8.3.80.0030.00618.30
8.3.70.0060.00918.40
8.3.60.0150.00418.30
8.3.50.0110.00722.83
8.3.40.0120.00918.78
8.3.30.0070.00718.60
8.3.20.0040.00420.11
8.3.10.0040.00423.71
8.3.00.0070.00019.27
8.2.300.0110.00918.21
8.2.290.0100.00620.55
8.2.280.0100.00818.44
8.2.270.0090.00917.27
8.2.260.0040.01416.48
8.2.250.0060.00318.27
8.2.240.0070.01119.14
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0040.00416.63
8.2.190.0100.01016.63
8.2.180.0110.00718.29
8.2.170.0140.00022.96
8.2.160.0120.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00920.66
8.2.110.0090.00021.10
8.2.100.0070.00418.16
8.2.90.0000.00819.22
8.2.80.0030.00517.97
8.2.70.0000.00817.59
8.2.60.0040.00419.13
8.2.50.0050.00318.10
8.2.40.0000.00820.46
8.2.30.0040.00419.23
8.2.20.0000.00817.73
8.2.10.0040.00418.24
8.2.00.0000.00717.99
8.1.340.0140.00517.58
8.1.330.0100.00922.04
8.1.320.0100.00916.11
8.1.310.0070.01018.34
8.1.300.0110.00017.63
8.1.290.0040.00830.84
8.1.280.0130.00325.92
8.1.270.0040.00423.96
8.1.260.0130.00626.35
8.1.250.0030.00528.09
8.1.240.0030.00722.19
8.1.230.0090.00317.89
8.1.220.0040.00417.77
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0040.00419.01
8.1.150.0000.00718.93
8.1.140.0000.00719.61
8.1.130.0000.00817.71
8.1.120.0000.00717.46
8.1.110.0040.00417.35
8.1.100.0070.00017.43
8.1.90.0030.00517.46
8.1.80.0000.00717.53
8.1.70.0080.00017.32
8.1.60.0030.00517.59
8.1.50.0040.00417.55
8.1.40.0000.00817.58
8.1.30.0080.00017.52
8.1.20.0000.00817.67
8.1.10.0040.00417.63
8.1.00.0110.00417.57
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.37
8.0.270.0030.00316.73
8.0.260.0060.00017.32
8.0.250.0000.00817.02
8.0.240.0070.00016.97
8.0.230.0000.00717.03
8.0.220.0000.00816.88
8.0.210.0000.00716.86
8.0.200.0030.00316.95
8.0.190.0030.00516.95
8.0.180.0040.00416.93
8.0.170.0030.00516.80
8.0.160.0000.00816.76
8.0.150.0030.00516.86
8.0.140.0070.00016.74
8.0.130.0000.00513.27
8.0.120.0030.00616.86
8.0.110.0000.00816.80
8.0.100.0070.00017.00
8.0.90.0050.00216.95
8.0.80.0080.00816.93
8.0.70.0040.00416.84
8.0.60.0000.00716.86
8.0.50.0040.00416.68
8.0.30.0080.00916.79
8.0.20.0150.00417.40
8.0.10.0040.00416.86
8.0.00.0090.01416.61
7.4.330.0000.00515.08
7.4.320.0030.00316.50
7.4.300.0060.00316.57
7.4.290.0030.00316.61
7.4.280.0050.00316.63
7.4.270.0000.00816.64
7.4.260.0050.00216.58
7.4.250.0080.00016.45
7.4.240.0020.00616.55
7.4.230.0000.00716.67
7.4.220.0060.00916.46
7.4.210.0050.01116.65
7.4.200.0040.00416.60
7.4.160.0100.00516.46
7.4.150.0110.00917.40
7.4.140.0100.00817.86
7.4.130.0120.00516.55
7.4.120.0090.00816.55
7.4.110.0140.00416.43
7.4.100.0080.00816.68
7.4.90.0100.00716.47
7.4.80.0100.01019.39
7.4.70.0160.00016.36
7.4.60.0130.00316.41
7.4.50.0000.01716.57
7.4.40.0090.00916.35
7.4.30.0100.00716.60
7.4.00.0120.00515.08
7.3.330.0030.00313.16
7.3.320.0080.00013.24
7.3.310.0060.00316.39
7.3.300.0000.00616.40
7.3.290.0000.00716.20
7.3.280.0080.01016.35
7.3.270.0090.00917.40
7.3.260.0140.00516.46
7.3.250.0140.01416.45
7.3.240.0100.00716.51
7.3.230.0070.01016.63
7.3.210.0100.00716.45
7.3.200.0030.02016.51
7.3.190.0070.01016.37
7.3.180.0090.01216.42
7.3.170.0110.00816.50
7.3.160.0060.00916.40
7.3.120.0030.01315.09
7.3.110.0090.00914.92
7.3.100.0100.00314.87
7.3.90.0030.01314.92
7.3.80.0120.00414.51
7.3.70.0090.00614.84
7.3.60.0030.00914.78
7.3.50.0070.00714.61
7.3.40.0090.00614.85
7.3.30.0090.00314.71
7.3.20.0000.01416.76
7.3.10.0030.01016.77
7.3.00.0070.00416.75
7.2.330.0090.00916.77
7.2.320.0100.00616.60
7.2.310.0130.01016.70
7.2.300.0140.00716.78
7.2.290.0060.01016.57
7.2.250.0070.01314.83
7.2.240.0040.01514.89
7.2.230.0070.00715.26
7.2.220.0030.00715.20
7.2.210.0110.00414.88
7.2.200.0060.01214.82
7.2.190.0030.01015.18
7.2.180.0000.01014.89
7.2.170.0090.00314.83
7.2.130.0090.00617.01
7.2.120.0030.01316.65
7.2.110.0060.00616.93
7.2.100.0030.01017.13
7.2.90.0050.00816.72
7.2.80.0090.00416.41
7.2.70.0080.00416.48
7.2.60.0050.00816.87
7.2.50.0060.00716.66
7.2.40.0080.00316.94
7.2.30.0040.01216.64
7.2.20.0040.00816.66
7.2.10.0110.00416.95
7.2.00.0030.01217.95
7.1.330.0080.00415.62
7.1.320.0090.00015.69
7.1.310.0090.00315.75
7.1.300.0060.00615.45
7.1.290.0030.01015.99
7.1.280.0060.00315.88
7.1.270.0030.00615.60
7.1.260.0060.00316.02
7.1.250.0040.00715.71
7.1.200.0030.00915.55
7.1.100.0040.00818.19
7.1.70.0080.00317.22
7.1.60.0070.01019.90
7.1.50.0150.00716.87
7.1.00.0000.07722.28
7.0.200.0340.00414.35
7.0.70.0130.06019.90
7.0.60.0170.06019.96
7.0.50.0200.05720.30
7.0.40.1700.06320.30
7.0.30.0130.07320.49
7.0.20.0170.08020.28
7.0.10.0330.06020.36
7.0.00.0230.06320.19
5.6.280.0130.06320.86
5.6.220.0130.06020.48
5.6.210.0130.06720.74
5.6.200.0200.06321.08
5.6.190.0130.06321.16
5.6.180.0100.07321.07
5.6.170.0230.05721.02
5.6.160.0270.05721.07
5.6.150.0170.07321.08
5.6.140.0200.05721.08
5.6.130.0130.06721.08
5.6.120.0200.05721.06
5.6.110.0130.06021.07
5.6.100.1030.06021.15
5.6.90.0200.06321.05
5.6.80.0200.05720.46
5.6.70.0200.05320.36
5.6.60.0130.06320.54
5.6.50.0070.06320.47
5.6.40.0100.06020.55
5.6.30.0070.06020.44
5.6.20.0130.05320.32
5.6.10.0100.06020.33
5.6.00.0100.06020.33
5.5.360.0200.06720.40
5.5.350.0200.05720.40
5.5.340.0970.06320.93
5.5.330.0230.05020.68
5.5.320.0200.06320.75
5.5.310.0200.08720.84
5.5.300.0130.05720.92
5.5.290.0170.06320.83
5.5.280.0200.06020.95
5.5.270.0300.07020.76
5.5.260.0700.05720.86
5.5.250.0730.05020.59
5.5.240.0200.06020.28
5.5.230.0230.05720.16
5.5.220.0300.05320.32
5.5.210.0200.05020.16
5.5.200.0070.06320.14
5.5.190.0200.05320.18
5.5.180.0130.05720.20
5.5.160.0170.05320.10
5.5.150.0170.05320.11
5.5.140.0130.05320.10
5.5.130.0370.06020.02
5.5.120.0230.04020.22
5.5.110.0130.05320.19
5.5.100.0100.07320.10
5.5.90.0400.04720.08
5.5.80.0330.04720.17
5.5.70.0200.06020.08
5.5.60.0370.03720.15
5.5.50.0200.06320.17
5.5.40.0300.05020.12
5.5.30.0200.06019.99
5.5.20.0270.05320.14
5.5.10.0270.06320.02
5.5.00.0270.05319.96

preferences:
58.95 ms | 1805 KiB | 5 Q