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; } } $i = 1; while ($i > 1000) { $foo = new Foo(); unset($foo); if ($i > 990) { echo number_format(memory_get_usage()) . "\n"; } $i++; }

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.0140.00016.61
7.3.00.0040.00916.32
7.2.130.0040.00616.64
7.2.120.0070.00916.71
7.2.110.0020.01116.76
7.2.100.0060.00616.59
7.2.90.0030.01216.87
7.2.80.0080.00516.85
7.2.70.0080.00816.74
7.2.60.0070.00916.65
7.2.50.0110.00516.81
7.2.40.0040.00916.48
7.2.30.0030.00916.64
7.2.20.0030.00916.76
7.2.10.0070.00616.68
7.2.00.0040.00617.58
7.1.250.0080.00515.70
7.1.240.0030.00715.64
7.1.230.0040.00415.79
7.1.220.0060.00615.43
7.1.210.0060.00315.43
7.1.200.0030.00915.51
7.1.190.0110.00415.61
7.1.180.0030.01015.32
7.1.170.0040.00815.66
7.1.160.0070.00715.36
7.1.150.0090.00815.75
7.1.140.0070.00715.64
7.1.130.0030.01015.54
7.1.120.0030.00715.53
7.1.110.0100.00015.73
7.1.100.0060.00315.49
7.1.90.0030.00615.82
7.1.80.0000.01115.43
7.1.70.0050.00316.25
7.1.60.0060.01317.53
7.1.50.0060.01016.27
7.1.40.0030.00715.60
7.1.30.0050.00515.57
7.1.20.0070.00415.77
7.1.10.0100.00315.66
7.1.00.0030.03419.04
7.0.330.0060.00615.14
7.0.320.0080.00815.15
7.0.310.0060.00315.45
7.0.300.0080.00015.35
7.0.290.0100.00315.26
7.0.280.0030.00915.23
7.0.270.0080.00415.25
7.0.260.0060.00315.46
7.0.250.0070.00715.44
7.0.240.0000.01015.43
7.0.230.0060.00715.47
7.0.220.0070.00315.26
7.0.210.0110.00415.07
7.0.200.0070.00315.92
7.0.190.0070.00315.15
7.0.180.0030.00715.49
7.0.170.0030.00615.44
7.0.160.0000.01015.06
7.0.150.0000.01415.14
7.0.140.0020.04418.62
7.0.130.0100.00715.26
7.0.120.0080.03218.61
7.0.110.0050.00515.18
7.0.100.0110.00315.39
7.0.90.0070.00415.25
7.0.80.0030.01015.27
7.0.70.0130.00315.11
7.0.60.0100.04217.67
7.0.50.0130.03616.71
7.0.40.0030.02916.75
7.0.30.0260.02716.72
7.0.20.0180.03316.75
7.0.10.0070.04316.74
7.0.00.0080.03516.71
5.6.380.0040.00814.12
5.6.370.0080.00414.10
5.6.360.0070.00713.83
5.6.350.0060.00913.93
5.6.340.0050.00713.91
5.6.330.0090.00413.66
5.6.320.0060.00614.37
5.6.310.0060.00613.91
5.6.300.0070.00614.36
5.6.290.0090.00914.10
5.6.280.0070.03917.56
5.6.270.0030.00614.30
5.6.260.0090.00314.48
5.6.250.0080.00413.93
5.6.240.0030.01014.14
5.6.230.0030.01014.14
5.6.220.0060.00614.12
5.6.210.0100.03517.40
5.6.200.0090.04216.21
5.6.190.0030.04217.31
5.6.180.0190.03017.29
5.6.170.0160.04117.31
5.6.160.0030.04717.22
5.6.150.0090.01816.12
5.6.140.0040.04616.34
5.6.130.0030.05116.23
5.6.120.0080.04317.60
5.6.110.0130.04317.52
5.6.100.0070.03617.58
5.6.90.0070.02517.78
5.6.80.0030.02517.22
5.6.70.0070.00713.96
5.6.60.0090.00614.01
5.6.50.0190.00013.98
5.6.40.0150.00614.41
5.6.30.0150.00414.15
5.6.20.0090.00314.41
5.6.10.0060.00613.92
5.6.00.0150.00714.14
5.5.380.0000.00911.18
5.5.370.0040.00411.18
5.5.360.0080.00011.18
5.5.350.0040.03715.79
5.5.340.0030.02314.67
5.5.330.0050.02315.72
5.5.320.0220.04015.69
5.5.310.0200.02315.80
5.5.300.0070.03514.57
5.5.290.0020.04714.58
5.5.280.0100.01715.98
5.5.270.0070.04416.05
5.5.260.0120.04215.97
5.5.250.0090.02515.94
5.5.240.0070.02015.79
5.5.230.0120.00611.18
5.5.220.0040.00411.18
5.5.210.0000.00711.18
5.5.200.0060.00011.18
5.5.190.0060.00611.23
5.5.180.0070.00711.18
5.5.170.0050.00511.18
5.5.160.0120.00311.18
5.5.150.0070.00411.18
5.5.140.0000.00911.18
5.5.130.0030.01011.18
5.5.120.0040.00411.18
5.5.110.0090.00011.18
5.5.100.0150.00011.18
5.5.90.0030.00311.18
5.5.80.0120.00611.18
5.5.70.0030.00911.18
5.5.60.0100.00011.18
5.5.50.0040.00711.18
5.5.40.0060.00311.18
5.5.30.0000.00711.18
5.5.20.0030.00711.18
5.5.10.0000.00811.18
5.5.00.0040.00411.18
5.4.450.0050.02315.38
5.4.440.0130.04015.24
5.4.430.0090.02015.33
5.4.420.0050.02315.35
5.4.410.0050.02615.28
5.4.400.0100.03615.22
5.4.390.0040.02715.21
5.4.380.0030.04215.17
5.4.370.0060.04315.05
5.4.360.0080.02215.19
5.4.350.0050.04015.09
5.4.340.0180.03015.02
5.4.330.0060.00311.18
5.4.320.0060.04015.05
5.4.310.0050.02215.21
5.4.300.0080.03015.07
5.4.290.0050.04215.01
5.4.280.0090.02815.21
5.4.270.0090.02015.16
5.4.260.0080.03815.22
5.4.250.0100.03615.17
5.4.240.0050.03715.14
5.4.230.0070.04015.16
5.4.220.0060.03515.21
5.4.210.0100.02215.16
5.4.200.0030.02315.07
5.4.190.0110.03515.16
5.4.180.0050.02915.16
5.4.170.0020.02415.12
5.4.160.0050.02115.15
5.4.150.0030.02415.00
5.4.140.0060.01813.78
5.4.130.0050.02013.78
5.4.120.0080.01713.80
5.4.110.0020.02213.76
5.4.100.0070.02013.79
5.4.90.0060.02013.84
5.4.80.0000.02313.81
5.4.70.0070.01713.84
5.4.60.0070.01813.71
5.4.50.0020.02013.74
5.4.40.0100.01813.91
5.4.30.0050.02013.84
5.4.20.0080.01513.80
5.4.10.0050.02013.78
5.4.00.0020.02213.48
5.3.290.0070.02012.86
5.3.280.0070.04112.92
5.3.270.0020.02712.92
5.3.260.0030.02012.90
5.3.250.0030.02212.90
5.3.240.0050.02112.98
5.3.230.0020.02112.88
5.3.220.0030.02012.88
5.3.210.0030.02112.95
5.3.200.0000.02212.88
5.3.190.0030.02012.90
5.3.180.0030.02012.90
5.3.170.0010.02212.87
5.3.160.0050.02012.88
5.3.150.0070.02012.87
5.3.140.0060.02112.95
5.3.130.0050.02012.90
5.3.120.0000.02412.82
5.3.110.0050.02012.89
5.3.100.0060.01812.62
5.3.90.0030.02212.62
5.3.80.0030.02112.59
5.3.70.0050.01712.60
5.3.60.0000.02312.67
5.3.50.0030.02212.54
5.3.40.0030.02312.56
5.3.30.0050.02012.52
5.3.20.0020.02012.42
5.3.10.0020.02012.50
5.3.00.0020.02112.42
5.2.170.0040.01511.17
5.2.160.0030.01511.11
5.2.150.0030.01611.20
5.2.140.0020.01711.16
5.2.130.0000.01811.15
5.2.120.0040.01511.14
5.2.110.0000.01911.21
5.2.100.0030.01511.09
5.2.90.0030.01711.13
5.2.80.0020.01611.15
5.2.70.0040.01511.12
5.2.60.0020.01811.20
5.2.50.0020.01711.13
5.2.40.0070.01311.10
5.2.30.0050.01711.02
5.2.20.0050.02311.09
5.2.10.0030.03011.05
5.2.00.0020.03510.95
5.1.60.0050.01810.59
5.1.50.0020.03310.61
5.1.40.0030.02710.61
5.1.30.0050.02910.79
5.1.20.0020.03110.77
5.1.10.0050.02810.65
5.1.00.0040.02210.58
5.0.50.0070.0229.87
5.0.40.0000.0279.80
5.0.30.0010.0209.78
5.0.20.0050.0209.72
5.0.10.0020.0199.72
5.0.00.0040.0209.72
4.4.90.0010.0109.72
4.4.80.0020.0079.72
4.4.70.0030.0149.72
4.4.60.0020.0149.72
4.4.50.0030.0129.72
4.4.40.0050.0259.72
4.4.30.0030.0189.72
4.4.20.0020.0199.72
4.4.10.0030.0139.72
4.4.00.0050.0199.72
4.3.110.0000.0199.72
4.3.100.0070.0179.72
4.3.90.0000.0169.72
4.3.80.0020.0289.72
4.3.70.0020.0199.72
4.3.60.0020.0109.72
4.3.50.0040.0159.72
4.3.40.0020.0309.72
4.3.30.0040.0179.72
4.3.20.0000.0229.72
4.3.10.0020.0109.72
4.3.00.0030.0179.72

preferences:
39.55 ms | 400 KiB | 5 Q