3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __construct() { $this->bar = new Bar($this); } } class Bar { function __construct($foo = null) { $this->foo = $foo; } } $usage = 0; $maxima = array(); while (count($maxima) < 5 && $usage < 50000000) { $foo = new Foo(); unset($foo); $last = $usage; $usage = memory_get_usage(); if ($usage < $last) { $maxima[] = $last; } } if (count($maxima)) { printf("Not buggy: Maxima: %s\n", implode('; ', $maxima)); } else { printf("Buggy! Memory never went down."); } ?>

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)
7.3.10.0170.02020.67
7.3.00.0170.02720.69
7.2.130.0170.02720.77
7.2.120.0110.02820.78
7.2.110.0170.02920.69
7.2.100.0190.02720.66
7.2.90.0110.03320.67
7.2.80.0150.03520.73
7.2.70.0150.02620.87
7.2.60.0110.03020.79
7.2.50.0130.02520.78
7.2.40.0220.02420.80
7.2.30.0180.02420.78
7.2.20.0210.02220.81
7.2.10.0190.03220.77
7.2.00.0130.02521.64
7.1.250.0170.03419.73
7.1.240.0060.02919.86
7.1.230.0160.02319.73
7.1.220.0070.02719.72
7.1.210.0070.02619.62
7.1.200.0170.01719.57
7.1.190.1370.03019.89
7.1.180.0030.02719.97
7.1.170.0030.03119.60
7.1.160.0040.02219.91
7.1.150.0090.01519.82
7.1.140.0030.02720.04
7.1.130.1290.02619.92
7.1.120.1750.03319.90
7.1.110.0100.02319.75
7.1.100.0100.02419.95
7.1.90.0150.01819.88
7.1.80.0150.02819.77
7.1.70.0020.03420.55
7.1.60.0050.02320.85
7.1.50.0060.02820.55
7.1.40.0130.02020.02
7.1.30.0080.02019.91
7.1.20.0130.02019.68
7.1.10.0070.02619.96
7.1.00.0050.03523.11
7.0.320.0070.02019.60
7.0.310.0120.02519.64
7.0.300.0100.01619.63
7.0.290.0070.02319.44
7.0.280.0630.02619.32
7.0.270.0060.02219.64
7.0.260.0120.01719.77
7.0.250.0070.02619.35
7.0.240.0060.01919.45
7.0.230.0110.02119.73
7.0.220.0000.02819.37
7.0.210.0130.01319.67
7.0.200.0130.02420.26
7.0.190.0120.02019.65
7.0.180.0090.02619.30
7.0.170.0130.01619.73
7.0.160.0400.02619.62
7.0.150.0120.01819.23
7.0.140.0080.05522.91
7.0.130.0150.01819.67
7.0.120.0160.02019.50
7.0.110.0090.02219.52
7.0.100.0060.02119.61
7.0.90.0090.02119.62
7.0.80.0140.06021.81
7.0.70.0720.05421.93
7.0.60.0720.05921.78
7.0.50.0600.04122.11
7.0.40.0100.03817.44
7.0.30.0040.03917.41
7.0.20.0080.03417.42
7.0.10.0090.03417.28
7.0.00.0110.02717.39
5.6.380.0100.03918.83
5.6.370.0070.04018.82
5.6.360.0030.04418.88
5.6.350.0070.04118.74
5.6.340.0100.03918.80
5.6.330.0100.03818.82
5.6.320.0070.04418.65
5.6.310.0070.04118.98
5.6.300.0090.03818.77
5.6.290.0170.03518.95
5.6.280.0070.07921.99
5.6.270.0140.03518.82
5.6.260.0170.03319.00
5.6.250.0130.03918.98
5.6.240.0130.04119.13
5.6.230.0050.08721.88
5.6.220.0100.08121.90
5.6.210.0140.07521.81
5.6.200.0050.06322.24
5.6.190.0090.05322.10
5.6.180.0020.06022.21
5.6.170.0050.05722.09
5.6.160.0140.05722.24
5.6.150.0170.04121.97
5.6.140.0120.06222.15
5.6.130.0070.05622.21
5.6.120.0090.06422.15
5.6.110.0110.05322.06
5.6.100.0100.05222.00
5.6.90.0080.05022.01
5.6.80.0090.04921.75
5.6.70.0130.07621.75
5.6.60.0120.08121.84
5.6.50.0060.05821.71
5.6.40.0130.07821.71
5.6.30.0130.08121.70
5.6.20.0150.07521.70
5.6.10.0090.06221.66
5.6.00.0180.07421.73
5.5.380.0070.03715.40
5.5.370.0150.07820.19
5.5.360.0160.05320.26
5.5.350.0100.08320.32
5.5.340.0160.04520.49
5.5.330.0100.05320.38
5.5.320.0090.05520.51
5.5.310.0130.06020.47
5.5.300.0050.05720.50
5.5.290.0110.05120.35
5.5.280.0110.05120.46
5.5.270.0070.07720.51
5.5.260.0120.05420.44
5.5.250.0120.05820.20
5.5.240.0130.04620.14
5.5.230.0150.04620.01
5.5.220.0060.05920.24
5.5.210.0100.05320.00
5.5.200.0100.08120.05
5.5.190.0130.07420.01
5.5.180.0190.06920.03
5.5.170.0100.04018.74
5.5.160.0140.07120.02
5.5.150.0110.08219.98
5.5.140.0070.08019.96
5.5.130.0100.07819.89
5.5.120.0100.05420.19
5.5.110.0070.07320.14
5.5.100.0070.05920.04
5.5.90.0020.05820.11
5.5.80.0140.05619.97
5.5.70.0080.05819.93
5.5.60.0090.05719.90
5.5.50.0100.07619.93
5.5.40.0110.05119.98
5.5.30.0090.08920.16
5.5.20.0120.07020.10
5.5.10.0150.07519.79
5.5.00.0100.06419.98
5.4.450.0070.05419.72
5.4.440.0190.04119.72
5.4.430.0030.05319.42
5.4.420.0080.06519.67
5.4.410.0100.05619.41
5.4.400.0070.04919.45
5.4.390.0080.05019.47
5.4.380.0110.06119.39
5.4.370.0060.05419.43
5.4.360.0020.07919.42
5.4.350.0100.07319.52
5.4.340.0090.07819.42
5.4.330.0040.04715.39
5.4.320.0130.06319.38
5.4.310.0170.07119.43
5.4.300.0150.07519.43
5.4.290.0190.07019.38
5.4.280.0100.06319.29
5.4.270.0090.05819.45
5.4.260.0080.07319.45
5.4.250.0080.07619.50
5.4.240.0090.07519.38
5.4.230.0130.05319.48
5.4.220.0110.07319.45
5.4.210.0080.05819.20
5.4.200.0130.07719.39
5.4.190.0060.06219.31
5.4.180.0100.07519.40
5.4.170.0100.07619.45
5.4.160.0020.08719.41
5.4.150.0130.07319.45
5.4.140.0060.06318.08
5.4.130.0070.08018.00
5.4.120.0100.07218.12
5.4.110.0120.07617.96
5.4.100.0070.06918.02
5.4.90.0110.07718.17
5.4.80.0080.07318.05
5.4.70.0070.08117.98
5.4.60.0080.07818.05
5.4.50.0090.07818.06
5.4.40.0060.06618.05
5.4.30.0130.06618.00
5.4.20.0130.06318.12
5.4.10.0150.07418.16
5.4.00.0100.06117.84
5.3.290.0080.07616.76
5.3.280.0100.05616.84
5.3.270.0130.08216.71
5.3.260.0060.08016.84
5.3.250.0080.07116.87
5.3.240.0090.08316.81
5.3.230.0120.07316.71
5.3.220.0090.08016.73
5.3.210.0120.07916.81
5.3.200.0090.08416.76
5.3.190.0100.07916.79
5.3.180.0070.08416.80
5.3.170.0110.07716.87
5.3.160.0130.07716.85
5.3.150.0080.06516.71
5.3.140.0080.08616.86
5.3.130.0030.08616.73
5.3.120.0050.08716.83
5.3.110.0070.06416.79
5.3.100.0120.06916.55
5.3.90.0110.06716.51
5.3.80.0080.08416.38
5.3.70.0110.07816.39
5.3.60.0100.07616.50
5.3.50.0070.08316.35
5.3.40.0130.06716.21
5.3.30.0100.07716.26
5.3.20.0090.07316.24
5.3.10.0050.07716.16
5.3.00.0060.07016.06
5.2.170.0300.12557.53
5.2.160.0150.14057.44
5.2.150.0230.13357.62
5.2.140.0270.14757.48
5.2.130.0260.14257.48
5.2.120.0230.14257.53
5.2.110.0280.13957.60
5.2.100.0180.13357.61
5.2.90.0200.11957.52
5.2.80.0150.14057.38
5.2.70.0230.12357.30
5.2.60.0230.10657.37
5.2.50.0100.15657.43
5.2.40.0170.15357.36
5.2.30.0300.13957.35
5.2.20.0350.15157.40
5.2.10.0300.13457.06
5.2.00.0060.03211.00
5.1.60.0070.01811.00
5.1.50.0100.02011.00
5.1.40.0020.02711.00
5.1.30.0040.02911.00
5.1.20.0040.02211.00
5.1.10.0060.02911.00
5.1.00.0070.02211.00
5.0.50.0040.01911.00
5.0.40.0080.02111.00
5.0.30.0000.03711.00
5.0.20.0030.02411.00
5.0.10.0000.01911.00
5.0.00.0090.02811.00
4.4.90.0010.02111.00
4.4.80.0050.01311.00
4.4.70.0070.01511.00
4.4.60.0060.01311.00
4.4.50.0030.01411.00
4.4.40.0020.02811.00
4.4.30.0070.01511.00
4.4.20.0000.01711.00
4.4.10.0050.01811.00
4.4.00.0020.03011.00
4.3.110.0030.02011.00
4.3.100.0030.01511.00
4.3.90.0020.01811.00
4.3.80.0030.01711.00
4.3.70.0010.01111.00
4.3.60.0020.01511.00
4.3.50.0100.01311.00
4.3.40.0050.02711.00
4.3.30.0040.02011.00
4.3.20.0020.02011.00
4.3.10.0060.01611.00
4.3.00.0040.01711.00

preferences:
36.82 ms | 401 KiB | 5 Q