3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=62437 function output($buffer) { global $object; return $buffer . $_COOKIES['supercookie']; } $_COOKIE['supercokie'] = 'erwere'; ob_start('output'); $object = 'tertert'; echo "foo ";

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.0090.00616.75
8.3.50.0130.00517.42
8.3.40.0110.00418.78
8.3.30.0130.00318.96
8.3.20.0050.00318.73
8.3.10.0040.00420.65
8.3.00.0090.00019.50
8.2.180.0040.01116.63
8.2.170.0070.00722.96
8.2.160.0030.01021.14
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.41
8.2.110.0090.00320.35
8.2.100.0110.00017.97
8.2.90.0040.00419.34
8.2.80.0040.00719.34
8.2.70.0100.00017.38
8.2.60.0040.00418.05
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0030.00518.03
8.2.20.0000.00817.84
8.2.10.0040.00417.92
8.2.00.0040.00417.83
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0060.00620.97
8.1.220.0000.00817.74
8.1.210.0040.00418.95
8.1.200.0090.00017.25
8.1.190.0020.00517.63
8.1.180.0040.00418.10
8.1.170.0000.00818.89
8.1.160.0060.00318.89
8.1.150.0050.00318.65
8.1.140.0000.00717.36
8.1.130.0070.00017.81
8.1.120.0040.00417.45
8.1.110.0040.00417.41
8.1.100.0050.00217.39
8.1.90.0000.00717.46
8.1.80.0000.00817.34
8.1.70.0000.00717.43
8.1.60.0000.00817.59
8.1.50.0030.00617.39
8.1.40.0070.00317.47
8.1.30.0050.00317.58
8.1.20.0000.00717.65
8.1.10.0050.00217.59
8.1.00.0000.00817.40
8.0.300.0080.00020.02
8.0.290.0050.00316.75
8.0.280.0070.00018.41
8.0.270.0030.00317.32
8.0.260.0030.00316.87
8.0.250.0070.00016.98
8.0.240.0040.00416.97
8.0.230.0070.00017.04
8.0.220.0030.00316.83
8.0.210.0030.00616.95
8.0.200.0000.00716.92
8.0.190.0060.00317.04
8.0.180.0040.00416.93
8.0.170.0060.00316.88
8.0.160.0040.00416.97
8.0.150.0060.00316.85
8.0.140.0110.00016.96
8.0.130.0030.00313.34
8.0.120.0070.00016.80
8.0.110.0070.00016.75
8.0.100.0050.00316.83
8.0.90.0050.00216.91
8.0.80.0090.00616.90
8.0.70.0050.00316.94
8.0.60.0070.00016.90
8.0.50.0000.00816.84
8.0.30.0130.01217.25
8.0.20.0100.00917.02
8.0.10.0030.00317.14
8.0.00.0090.00916.97
7.4.330.0000.00512.97
7.4.320.0030.00316.46
7.4.300.0030.00316.41
7.4.290.0040.00416.40
7.4.280.0000.00716.40
7.4.270.0080.00016.60
7.4.260.0060.00013.29
7.4.250.0050.00516.54
7.4.240.0040.00416.54
7.4.230.0050.00316.55
7.4.220.0070.01116.55
7.4.210.0080.00716.64
7.4.200.0030.00316.39
7.4.190.0070.00016.31
7.4.160.0120.00316.62
7.4.150.0100.01016.47
7.4.140.0090.01016.53
7.4.130.0080.00816.52
7.4.120.0140.00516.57
7.4.110.0070.01016.54
7.4.100.0070.01016.54
7.4.90.0070.01016.63
7.4.80.0130.00316.44
7.4.70.0080.00816.49
7.4.60.0120.00616.38
7.4.50.0070.00516.61
7.4.40.0020.01216.56
7.4.30.0060.00916.40
7.4.00.0070.00715.16
7.3.330.0030.00313.20
7.3.320.0030.00313.16
7.3.310.0030.00316.33
7.3.300.0060.00016.34
7.3.290.0040.01016.43
7.3.280.0070.00916.42
7.3.270.0060.01216.66
7.3.260.0040.01316.57
7.3.250.0150.00716.50
7.3.240.0100.00716.62
7.3.230.0120.00316.60
7.3.210.0090.00916.49
7.3.200.0090.01219.39
7.3.190.0090.01316.56
7.3.180.0090.00716.52
7.3.170.0140.00316.61
7.3.160.0050.01116.59
7.3.120.0070.01014.95
7.3.10.0120.00616.45
7.3.00.0120.00816.50
7.2.330.0100.00716.48
7.2.320.0060.01216.75
7.2.310.0100.01416.67
7.2.300.0030.01416.50
7.2.290.0090.00616.61
7.2.130.0090.01216.69
7.2.120.0130.00716.56
7.2.110.0100.01016.66
7.2.100.0080.01216.67
7.2.90.0090.00516.76
7.2.80.0170.00616.69
7.2.70.0100.00916.90
7.2.60.0070.00916.61
7.2.50.0100.01216.73
7.2.40.0130.00517.01
7.2.30.0070.00716.78
7.2.20.0110.00916.90
7.2.10.0110.00916.66
7.2.00.0180.00216.93
7.1.250.0100.00815.66
7.1.70.0040.00417.16
7.1.60.0090.01619.40
7.1.50.0090.01216.95
7.1.00.0000.03722.41
7.0.200.0050.00514.75
7.0.140.0030.06721.94
7.0.120.0100.07022.16
7.0.60.0330.07320.00
7.0.50.0070.07717.97
7.0.40.0130.05320.16
7.0.30.0100.05020.10
7.0.20.0100.06020.25
7.0.10.0130.07320.25
7.0.00.0100.07720.34
5.6.280.0000.07720.76
5.6.210.0130.06720.71
5.6.200.0130.08018.29
5.6.190.0130.06720.63
5.6.180.0100.07020.60
5.6.170.0030.04320.61
5.6.160.0030.09020.47
5.6.150.0070.05320.23
5.6.140.0030.05020.17
5.6.130.0070.08720.52
5.6.120.0070.07020.50
5.6.110.0200.04320.39
5.6.100.0100.04320.16
5.6.90.0200.07320.17
5.6.80.0130.06319.54
5.6.70.0070.07319.88
5.6.60.0070.05719.90
5.6.50.0130.06319.89
5.6.40.0070.05719.72
5.6.30.0100.05319.77
5.6.20.0000.05019.88
5.6.10.0070.07019.60
5.6.00.0130.05319.75
5.5.350.0000.08320.41
5.5.340.0030.03717.98
5.5.330.0030.06320.46
5.5.320.0030.08320.47
5.5.310.0130.07720.27
5.5.300.0000.08319.98
5.5.290.0200.06720.30
5.5.280.0070.05320.14
5.5.270.0230.05320.13
5.5.260.0070.04320.12
5.5.250.0030.06720.02
5.5.240.0130.07719.35
5.5.230.0070.03719.67
5.5.220.0030.04019.61
5.5.210.0100.07319.69
5.5.200.0030.04019.64
5.5.190.0000.06719.49
5.5.180.0070.06319.47
5.5.160.0070.04019.67
5.5.150.0070.06319.58
5.5.140.0100.07719.48
5.5.130.0030.04719.31
5.5.120.0070.06319.54
5.5.110.0000.04719.55
5.5.100.0000.07319.59
5.5.90.0030.04319.46
5.5.80.0070.04019.39
5.5.70.0100.03719.38
5.5.60.0030.05719.56
5.5.50.0130.06019.36
5.5.40.0070.08319.27
5.5.30.0100.03319.28
5.5.20.0030.05019.33
5.5.10.0030.04019.52
5.5.00.0070.05719.27
5.4.450.0070.06719.30
5.4.440.0100.07319.18
5.4.430.0070.07019.40
5.4.420.0030.07019.33
5.4.410.0030.04019.12
5.4.400.0100.07319.01
5.4.390.0130.04019.17
5.4.380.0130.03719.27
5.4.370.0030.08318.87
5.4.360.0070.06319.24
5.4.350.0100.06319.26
5.4.340.0100.06319.15
5.4.320.0070.05019.15
5.4.310.0070.03719.24
5.4.300.0030.04019.08
5.4.290.0070.03319.17
5.4.280.0130.06019.20
5.4.270.0030.06319.23
5.4.260.0070.05019.11
5.4.250.0100.07019.07
5.4.240.0070.04319.14
5.4.230.0070.08019.11
5.4.220.0170.06718.93
5.4.210.0030.05719.07
5.4.200.0030.04718.84
5.4.190.0070.04019.01
5.4.180.0130.05018.84
5.4.170.0100.04019.10
5.4.160.0100.07018.84
5.4.150.0130.07018.85
5.4.140.0100.07316.44
5.4.130.0030.04016.49
5.4.120.0100.07016.25
5.4.110.0030.05316.29
5.4.100.0070.07716.37
5.4.90.0070.04316.30
5.4.80.0070.07016.43
5.4.70.0070.07016.38
5.4.60.0070.04716.34
5.4.50.0030.07016.40
5.4.40.0070.06316.43
5.4.30.0070.06716.27
5.4.20.0070.08316.50
5.4.10.0070.03716.36
5.4.00.0000.04015.79
5.3.290.0070.05014.73
5.3.280.0030.08314.55
5.3.270.0070.05314.61
5.3.260.0100.04714.62
5.3.250.0000.08014.60
5.3.240.0030.06314.70
5.3.230.0070.05714.61
5.3.220.0030.05714.62
5.3.210.0030.04014.62
5.3.200.0070.07314.61
5.3.190.0070.03314.72
5.3.180.0030.04014.54
5.3.170.0070.06014.45
5.3.160.0070.07314.64
5.3.150.0000.05314.62
5.3.140.0070.07314.57
5.3.130.0030.05014.55
5.3.120.0070.04314.64
5.3.110.0100.07014.70
5.3.100.0030.03714.11
5.3.90.0030.07714.19
5.3.80.0030.05013.99
5.3.70.0070.04014.18
5.3.60.0030.03714.10
5.3.50.0000.04014.12
5.3.40.0100.06313.91
5.3.30.0070.07313.87
5.3.20.0030.07313.76
5.3.10.0030.07013.63
5.3.00.0100.04013.65
5.2.170.0000.03311.09
5.2.160.0030.05711.20
5.2.150.0100.04311.30
5.2.140.0030.04011.18
5.2.130.0030.06311.05
5.2.120.0000.06011.25
5.2.110.0000.06711.09
5.2.100.0000.03311.04
5.2.90.0070.05311.06
5.2.80.0100.04311.15
5.2.70.0070.05710.98
5.2.60.0030.06711.09
5.2.50.0030.06011.07
5.2.40.0000.06010.92
5.2.30.0000.06710.91
5.2.20.0100.05711.01
5.2.10.0030.02710.87
5.2.00.0070.05010.67
5.1.60.0030.0509.92
5.1.50.0130.0239.98
5.1.40.0130.0439.88
5.1.30.0030.02710.33
5.1.20.0000.03010.34
5.1.10.0030.05710.09
5.1.00.0000.0409.97
5.0.50.0070.0208.69
5.0.40.0070.0278.32
5.0.30.0030.0308.13
5.0.20.0000.0338.11
5.0.10.0000.0508.18
5.0.00.0030.0578.07
4.4.90.0000.0237.48
4.4.80.0030.0207.48
4.4.70.0000.0277.48
4.4.60.0000.0177.48
4.4.50.0030.0137.48
4.4.40.0030.0277.48
4.4.30.0000.0377.48
4.4.20.0000.0307.48
4.4.10.0000.0177.48
4.4.00.0000.0477.48
4.3.110.0030.0137.48
4.3.100.0030.0307.48
4.3.90.0100.0207.48
4.3.80.0030.0437.48
4.3.70.0000.0277.48
4.3.60.0030.0137.48
4.3.50.0070.0307.48
4.3.40.0070.0337.48
4.3.30.0000.0337.48
4.3.20.0000.0377.48
4.3.10.0000.0337.48
4.3.00.0000.0177.48

preferences:
48.81 ms | 401 KiB | 5 Q