3v4l.org

run code in 300+ PHP versions simultaneously
<?php function &getBar() { static $bar = null; if ($bar === null) { $bar[] = 'init'; } return $bar; } $array = &getBar(); $arary[] = 123; // var_dump(getBar());

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.130.0040.00418.55
8.3.120.0090.00619.16
8.3.110.0030.00620.94
8.3.100.0000.00816.75
8.3.90.0080.00026.77
8.3.80.0030.00618.55
8.3.70.0070.00716.50
8.3.60.0110.00716.75
8.3.50.0130.00722.01
8.3.40.0140.00418.61
8.3.30.0080.00519.08
8.3.20.0080.00020.30
8.3.10.0050.00321.82
8.3.00.0050.00319.50
8.2.250.0070.01116.43
8.2.240.0080.00017.32
8.2.230.0040.00422.58
8.2.220.0110.00024.06
8.2.210.0000.00826.77
8.2.200.0090.00018.25
8.2.190.0100.00716.75
8.2.180.0090.01216.38
8.2.170.0130.00722.96
8.2.160.0130.00019.41
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.00626.16
8.2.120.0030.00519.76
8.2.110.0110.00022.25
8.2.100.0040.00717.91
8.2.90.0040.00417.84
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0040.00419.88
8.2.30.0040.00418.11
8.2.20.0040.00417.71
8.2.10.0080.00017.99
8.2.00.0040.00417.84
8.1.300.0040.00716.28
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0050.00320.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00922.43
8.1.230.0060.00620.97
8.1.220.0030.00617.76
8.1.210.0000.00818.97
8.1.200.0090.00017.35
8.1.190.0040.00417.36
8.1.180.0060.00318.10
8.1.170.0040.00418.46
8.1.160.0050.00322.05
8.1.150.0040.00418.93
8.1.140.0040.00417.38
8.1.130.0000.00717.88
8.1.120.0000.00717.43
8.1.110.0060.00317.34
8.1.100.0000.00717.37
8.1.90.0000.00717.44
8.1.80.0040.00417.42
8.1.70.0000.00617.33
8.1.60.0000.00817.56
8.1.50.0030.00617.49
8.1.40.0000.00817.56
8.1.30.0040.00417.54
8.1.20.0020.00517.55
8.1.10.0000.00717.43
8.1.00.0030.00617.49
8.0.300.0080.00019.89
8.0.290.0060.00316.88
8.0.280.0000.00718.40
8.0.270.0000.00717.23
8.0.260.0030.00317.25
8.0.250.0000.00716.88
8.0.240.0030.00316.95
8.0.230.0000.00716.95
8.0.220.0040.00416.81
8.0.210.0040.00416.96
8.0.200.0000.00816.85
8.0.190.0040.00416.94
8.0.180.0000.00716.80
8.0.170.0040.00416.83
8.0.160.0040.00416.80
8.0.150.0030.00316.84
8.0.140.0040.00416.86
8.0.130.0000.00513.32
8.0.120.0040.00416.87
8.0.110.0040.00416.77
8.0.100.0070.00016.78
8.0.90.0040.00416.74
8.0.80.0140.00316.87
8.0.70.0000.00816.82
8.0.60.0000.00716.67
8.0.50.0020.00516.95
8.0.30.0140.00917.10
8.0.20.0110.00717.40
8.0.10.0060.00316.91
8.0.00.0050.01317.00
7.4.330.0030.00315.09
7.4.320.0030.00316.40
7.4.300.0050.00216.58
7.4.290.0000.00716.61
7.4.280.0090.00016.58
7.4.270.0040.00416.53
7.4.260.0030.00316.34
7.4.250.0070.00016.44
7.4.240.0020.00616.52
7.4.230.0000.00816.53
7.4.220.0180.01116.63
7.4.210.0090.01016.58
7.4.200.0050.00216.62
7.4.160.0090.00616.51
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0110.00716.57
7.4.120.0110.00716.47
7.4.110.0170.00616.58
7.4.100.0090.00916.45
7.4.90.0100.01316.40
7.4.80.0090.01319.39
7.4.70.0090.00916.43
7.4.60.0140.00316.46
7.4.50.0030.00316.50
7.4.40.0090.01316.48
7.4.30.0060.01216.39
7.4.10.0030.01715.12
7.4.00.0100.00814.92
7.3.330.0030.00313.22
7.3.320.0100.00513.29
7.3.310.0000.00716.14
7.3.300.0000.00716.22
7.3.290.0030.00316.34
7.3.280.0080.01016.25
7.3.270.0070.01017.40
7.3.260.0150.00316.53
7.3.250.0120.00716.60
7.3.240.0100.00616.57
7.3.230.0120.01216.54
7.3.210.0090.00616.39
7.3.200.0090.01519.39
7.3.190.0100.00716.38
7.3.180.0060.00916.51
7.3.170.0030.01316.55
7.3.160.0030.01316.47
7.3.130.0070.01214.76
7.3.120.0130.00615.06
7.3.110.0070.01415.04
7.3.100.0030.01014.50
7.3.90.0030.00714.79
7.3.80.0040.00714.79
7.3.70.0040.00714.91
7.3.60.0070.01014.68
7.3.50.0030.01314.92
7.3.40.0030.01014.82
7.3.30.0120.00414.64
7.3.20.0060.00616.45
7.3.10.0090.00916.69
7.3.00.0030.01216.41
7.2.330.0190.00416.73
7.2.320.0030.01316.55
7.2.310.0080.01416.70
7.2.300.0200.00516.39
7.2.290.0110.00816.54
7.2.260.0040.01515.27
7.2.250.0130.00714.97
7.2.240.0030.01015.04
7.2.230.0120.00614.80
7.2.220.0070.01014.75
7.2.210.0000.01615.22
7.2.200.0110.00414.89
7.2.190.0040.01115.11
7.2.180.0060.00614.94
7.2.170.0050.00514.92
7.2.160.0110.00415.02
7.2.150.0090.00617.02
7.2.140.0090.00616.54
7.2.130.0100.00716.72
7.2.120.0030.00916.78
7.2.110.0080.00316.68
7.2.100.0030.01316.86
7.2.90.0070.00317.11
7.2.80.0080.00416.66
7.2.70.0100.01016.95
7.2.60.0100.00316.84
7.2.50.0040.01416.61
7.2.40.0030.01316.96
7.2.30.0090.00616.88
7.2.20.0100.00716.89
7.2.10.0040.01116.89
7.2.00.0040.01118.23
7.1.330.0070.00715.69
7.1.320.0000.01515.70
7.1.310.0050.00315.80
7.1.300.0060.01315.81
7.1.290.0090.00615.53
7.1.280.0110.00415.50
7.1.270.0080.00815.73
7.1.260.0090.00015.79
7.1.250.0100.00715.78
7.1.240.0090.00315.72
7.1.230.0040.00715.86
7.1.220.0100.00715.76
7.1.210.0030.01015.86
7.1.200.0060.00615.66
7.1.190.0060.00615.82
7.1.180.0000.01615.59
7.1.170.0030.00715.55
7.1.160.0080.00015.60
7.1.150.0030.01315.93
7.1.140.0100.00715.66
7.1.130.0040.00815.84
7.1.120.0100.00315.68
7.1.110.0090.00315.90
7.1.100.0100.00616.59
7.1.90.0030.01215.82
7.1.80.0040.00415.71
7.1.70.0050.00516.48
7.1.60.0090.01017.57
7.1.50.0070.01116.31
7.1.40.0000.01715.83
7.1.30.0070.01015.56
7.1.20.0100.00715.43
7.1.10.0100.00315.81
7.1.00.0040.04118.96
7.0.330.0000.01515.47
7.0.320.0040.01115.53
7.0.310.0090.00315.51
7.0.300.0030.00715.46
7.0.290.0030.01015.13
7.0.280.0040.01415.04
7.0.270.0040.00815.12
7.0.260.0030.01015.20
7.0.250.0070.00715.50
7.0.240.0060.00915.17
7.0.230.0060.01115.63
7.0.220.0040.00915.45
7.0.210.0070.00715.54
7.0.200.0000.01116.17
7.0.190.0080.00815.41
7.0.180.0070.00415.39
7.0.170.0070.00715.52
7.0.160.0100.00615.13
7.0.150.0000.00815.41
7.0.140.0060.03718.78
7.0.130.0080.00615.48
7.0.120.0070.01015.56
7.0.110.0080.00815.45
7.0.100.0040.01115.51
7.0.90.0030.00615.48
7.0.80.0070.00715.67
7.0.70.0100.00715.57
7.0.60.0050.03017.55
7.0.50.0050.02216.62
7.0.40.0080.04316.72
7.0.30.0150.04216.90
7.0.20.0130.03316.74
7.0.10.0220.03916.84
7.0.00.0090.02316.68
5.6.400.0060.01214.63
5.6.390.0070.00714.18
5.6.380.0080.00414.54
5.6.370.0030.00914.22
5.6.360.0040.00714.57
5.6.350.0090.00914.47
5.6.340.0000.01814.63
5.6.330.0070.00714.31
5.6.320.0040.00714.69
5.6.310.0030.01014.29
5.6.300.0060.01014.30
5.6.290.0000.01314.11
5.6.280.0060.04017.91
5.6.270.0060.01014.29
5.6.260.0000.00814.51
5.6.250.0090.00614.36
5.6.240.0030.01014.28
5.6.230.0040.01414.41
5.6.220.0040.00814.45
5.6.210.0050.04417.54
5.6.200.0070.02716.21
5.6.190.0060.02517.42
5.6.180.0150.03917.49
5.6.170.0160.02417.52
5.6.160.0080.03017.52
5.6.150.0130.03716.28
5.6.140.0090.03816.28
5.6.130.0050.04816.36
5.6.120.0090.04317.69
5.6.110.0030.04917.62
5.6.100.0130.03717.71
5.6.90.0060.03917.55
5.6.80.0080.02117.31
5.6.70.0150.03717.38
5.6.60.0060.00614.24
5.6.50.0120.00614.53
5.6.40.0130.00314.16
5.6.30.0100.00714.32
5.6.20.0050.00514.02
5.6.10.0030.00914.45
5.6.00.0000.01514.38
5.5.380.0030.01314.60
5.5.370.0060.00914.52
5.5.360.0110.00414.35
5.5.350.0070.04817.59
5.5.340.0060.04216.19
5.5.330.0100.03817.27
5.5.320.0100.04117.43
5.5.310.0140.02417.21
5.5.300.0080.04115.98
5.5.290.0110.02016.11
5.5.280.0080.04417.55
5.5.270.0060.03017.48
5.5.260.0030.04517.53
5.5.250.0100.04017.29
5.5.240.0070.02917.16
5.5.230.0060.00614.40
5.5.220.0040.01213.88
5.5.210.0060.01214.30
5.5.200.0080.00814.38
5.5.190.0000.00914.52
5.5.180.0030.01014.16
5.5.170.0040.00814.05
5.5.160.0000.00913.86
5.5.150.0080.00314.38
5.5.140.0030.01014.11
5.5.130.0030.01014.14
5.5.120.0060.01014.28
5.5.110.0050.00514.13
5.5.100.0090.00614.43
5.5.90.0100.00714.12
5.5.80.0040.00814.15
5.5.70.0000.00914.32
5.5.60.0090.00614.22
5.5.50.0120.00414.27
5.5.40.0060.00313.95
5.5.30.0040.01114.37
5.5.20.0090.00414.17
5.5.10.0030.01014.43
5.5.00.0000.01314.20
5.4.450.0320.03315.98
5.4.440.0330.03315.97
5.4.430.0420.03515.78
5.4.420.0080.03015.92
5.4.410.0570.03415.94
5.4.400.0150.02815.59
5.4.390.0080.03415.54
5.4.380.0110.03415.46
5.4.370.0150.03015.43
5.4.360.0150.03115.53
5.4.350.0110.03015.57
5.4.340.0050.03515.46
5.4.330.0080.00412.38
5.4.320.0130.02515.57
5.4.310.0070.03415.52
5.4.300.0150.03415.53
5.4.290.0030.03915.48
5.4.280.0150.03715.43
5.4.270.0070.04815.57
5.4.260.0070.03615.40
5.4.250.0150.03315.57
5.4.240.0150.02615.54
5.4.230.0070.03415.57
5.4.220.0080.03015.46
5.4.210.0130.02815.54
5.4.200.0080.03014.50
5.4.190.0130.02715.57
5.4.180.0130.03015.40
5.4.170.0140.02815.58
5.4.160.0160.02815.54
5.4.150.0130.02715.46
5.4.140.0030.03914.30
5.4.130.0150.02914.33
5.4.120.0120.02714.40
5.4.110.0050.03214.39
5.4.100.0080.03114.33
5.4.90.0050.03314.28
5.4.80.0120.02714.33
5.4.70.0220.02614.31
5.4.60.0070.03014.27
5.4.50.0130.02314.32
5.4.40.0130.02514.29
5.4.30.0130.02614.39
5.4.20.0130.03014.28
5.4.10.0090.03814.29
5.4.00.0170.02714.01
5.3.290.0130.06014.75
5.3.280.0200.05314.70
5.3.270.0270.05314.60
5.3.260.0200.05714.60
5.3.250.0170.05714.63
5.3.240.0170.05314.59
5.3.230.0200.06314.57
5.3.220.0130.07314.57
5.3.210.0070.06314.60
5.3.200.0170.06314.74
5.3.190.0270.05014.66
5.3.180.0170.05714.61
5.3.170.0170.05014.59
5.3.160.0200.04714.61
5.3.150.0200.04714.59
5.3.140.0270.03714.64
5.3.130.0270.06314.64
5.3.120.0170.07014.54
5.3.110.0170.05714.74
5.3.100.0270.05014.07
5.3.90.0130.08013.99
5.3.80.0270.04314.09
5.3.70.0200.05014.11
5.3.60.0330.03314.10
5.3.50.0200.05313.99
5.3.40.0230.04714.16
5.3.30.0270.04013.96
5.3.20.0100.05713.66
5.3.10.0130.05313.64
5.3.00.0070.06313.63
5.2.170.0270.05311.19
5.2.160.0100.04711.13
5.2.150.0170.04011.12
5.2.140.0130.04311.23
5.2.130.0170.03311.11
5.2.120.0170.03711.15
5.2.110.0200.04711.09
5.2.100.0130.05711.11
5.2.90.0070.04711.09
5.2.80.0170.04011.18
5.2.70.0070.04711.29
5.2.60.0200.03311.05
5.2.50.0100.04311.13
5.2.40.0100.04011.03
5.2.30.0170.04011.07
5.2.20.0070.04311.00
5.2.10.0030.04711.05
5.2.00.0100.04010.69
5.1.60.0070.0379.97
5.1.50.0130.03310.03
5.1.40.0100.03310.01
5.1.30.0130.03310.34
5.1.20.0200.04010.32
5.1.10.0170.04010.10
5.1.00.0130.05010.25
5.0.50.0070.0408.64
5.0.40.0100.0278.60
5.0.30.0100.0408.24
5.0.20.0070.0278.21
5.0.10.0070.0308.27
5.0.00.0100.0408.14
4.4.90.0030.0235.97
4.4.80.0100.0175.90
4.4.70.0130.0135.92
4.4.60.0030.0235.89
4.4.50.0130.0205.92
4.4.40.0000.0405.86
4.4.30.0030.0235.98
4.4.20.0070.0206.02
4.4.10.0030.0235.99
4.4.00.0100.0335.95
4.3.110.0100.0235.85
4.3.100.0030.0235.82
4.3.90.0100.0205.92
4.3.80.0100.0405.80
4.3.70.0100.0275.80
4.3.60.0070.0235.77
4.3.50.0070.0205.82
4.3.40.0030.0405.77
4.3.30.0000.0274.55
4.3.20.0000.0274.62
4.3.10.0030.0204.53
4.3.00.0070.0237.19

preferences:
32.78 ms | 403 KiB | 5 Q