3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Tester { public function doNothing() { $res = array(); for ( $i = 0; $i < 10000; $i++) { $res[$i] = new StdClass; } } } $t = new Tester(); echo "Before: ".memory_get_usage()."\n"; $t->doNothing(); echo "After: ".memory_get_usage()."\n";

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.4.00.0130.00716.23
7.3.120.0060.01215.63
7.3.110.0190.00015.95
7.3.100.0030.01015.98
7.3.90.0060.01216.03
7.3.80.0120.00615.95
7.3.70.0040.01515.87
7.3.60.0030.01416.00
7.3.50.0070.00716.02
7.3.40.0090.00615.98
7.3.30.0100.00616.13
7.3.20.0130.00316.50
7.3.10.0080.00816.79
7.3.00.0000.01316.57
7.2.250.0040.01816.48
7.2.240.0060.01516.00
7.2.230.0030.01715.84
7.2.220.0070.00716.24
7.2.210.0040.01216.29
7.2.200.0070.00716.22
7.2.190.0030.01416.10
7.2.180.0070.01016.12
7.2.170.0090.00615.84
7.2.00.0060.00619.21
7.1.330.0090.00915.84
7.1.320.0060.01015.68
7.1.310.0040.01115.90
7.1.300.0070.00715.75
7.1.290.0110.00015.88
7.1.280.0060.00915.91
7.1.270.0070.01115.97
7.1.260.0090.00915.85
7.1.70.0000.00817.35
7.1.60.0000.01117.41
7.1.50.0090.01517.02
7.1.00.0030.07322.54
7.0.200.0100.00616.90
7.0.140.0030.07022.15
7.0.100.0070.08321.00
7.0.90.0130.07321.07
7.0.80.0170.06020.91
7.0.70.0030.09020.93
7.0.60.0070.08020.97
7.0.50.0130.08721.43
7.0.40.0130.07720.00
7.0.30.0070.08020.11
7.0.20.0000.08720.19
7.0.10.0070.08020.09
7.0.00.0070.08720.00
5.6.280.0000.08323.10
5.6.250.0070.08722.96
5.6.240.0130.07722.94
5.6.230.0100.05322.89
5.6.220.0070.08022.88
5.6.210.0030.09722.84
5.6.200.0130.08323.20
5.6.190.0070.08723.31
5.6.180.0030.09023.39
5.6.170.0100.07323.28
5.6.160.0070.08723.45
5.6.150.0130.08023.29
5.6.140.0170.08023.30
5.6.130.0200.08023.20
5.6.120.0030.05723.24
5.6.110.0130.07023.26
5.6.100.0100.08323.38
5.6.90.0030.07323.36
5.6.80.0100.07722.68
5.6.70.0100.07722.60
5.6.60.0070.08722.73
5.6.50.0100.05022.80
5.6.40.0030.08322.68
5.6.30.0070.08322.66
5.6.20.0100.08022.77
5.6.10.0100.04722.72
5.6.00.0030.08722.66
5.5.380.0100.08323.13
5.5.370.0170.07323.20
5.5.360.0070.07723.13
5.5.350.0130.07023.12
5.5.340.0070.08323.57
5.5.330.0030.09323.65
5.5.320.0100.08023.62
5.5.310.0100.08023.59
5.5.300.0130.07723.50
5.5.290.0100.08023.61
5.5.280.0030.09023.70
5.5.270.0070.09023.69
5.5.260.0130.08023.57
5.5.250.0100.10723.45
5.5.240.0100.04322.98
5.5.230.0130.07722.96
5.5.220.0100.07723.04
5.5.210.0100.04323.07
5.5.200.0000.08722.91
5.5.190.0170.08022.94
5.5.180.0030.05723.04
5.5.160.0130.07722.92
5.5.150.0030.08322.93
5.5.140.0070.05023.02
5.5.130.0070.04022.87
5.5.120.0030.05322.95
5.5.110.0070.05022.90
5.5.100.0100.06322.95
5.5.90.0130.03322.70
5.5.80.0030.04022.87
5.5.70.0070.04022.75
5.5.60.0070.03722.69
5.5.50.0030.06022.84
5.5.40.0070.04022.87
5.5.30.0030.04022.80
5.5.20.0070.04722.74
5.5.10.0130.03022.84
5.5.00.0030.04322.82
5.4.450.0000.06322.08
5.4.440.0130.07022.05
5.4.430.0100.08722.25
5.4.420.0100.07321.94
5.4.410.0030.04321.95
5.4.400.0030.08021.72
5.4.390.0100.08021.87
5.4.380.0030.08321.60
5.4.370.0070.08721.82
5.4.360.0070.08021.82
5.4.350.0100.04321.77
5.4.340.0100.06321.67
5.4.320.0100.07721.96
5.4.310.0100.04721.79
5.4.300.0130.03321.83
5.4.290.0100.03721.72
5.4.280.0070.04321.75
5.4.270.0070.07721.61
5.4.260.0070.04021.82
5.4.250.0030.04021.67
5.4.240.0030.03721.89
5.4.230.0100.04321.59
5.4.220.0070.03721.73
5.4.210.0070.03721.73
5.4.200.0030.07021.71
5.4.190.0100.06021.75
5.4.180.0030.03721.74
5.4.170.0000.04721.92
5.4.160.0100.05021.88
5.4.150.0030.04021.72
5.4.140.0030.04319.03
5.4.130.0070.06019.02
5.4.120.0030.03719.20
5.4.110.0030.03719.04
5.4.100.0000.04019.07
5.4.90.0000.04019.21
5.4.80.0100.03019.03
5.4.70.0030.03719.03
5.4.60.0030.04019.13
5.4.50.0070.03719.07
5.4.40.0030.04019.03
5.4.30.0030.03719.04
5.4.20.0030.03719.02
5.4.10.0070.03719.04
5.4.00.0030.04018.61
5.3.290.0070.06318.74
5.3.280.0000.04718.68
5.3.270.0030.07718.85
5.3.260.0030.07018.70
5.3.250.0030.06718.80
5.3.240.0070.04018.90
5.3.230.0070.04018.83
5.3.220.0070.04018.66
5.3.210.0070.04018.86
5.3.200.0100.06318.80
5.3.190.0070.03718.87
5.3.180.0030.04018.64
5.3.170.0030.05018.66
5.3.160.0000.04318.79
5.3.150.0070.04018.83
5.3.140.0030.04318.80
5.3.130.0000.04718.68
5.3.120.0100.03718.71
5.3.110.0030.04318.82
5.3.100.0030.04018.26
5.3.90.0130.03318.21
5.3.80.0130.04018.24
5.3.70.0070.03718.18
5.3.60.0030.05018.20
5.3.50.0000.05018.06
5.3.40.0000.04718.13
5.3.30.0130.07318.04
5.3.20.0070.08017.77
5.3.10.0130.05717.67
5.3.00.0030.04717.69
5.2.170.0030.05714.44
5.2.160.0000.05014.49
5.2.150.0070.03314.49
5.2.140.0030.05714.38
5.2.130.0070.06714.40
5.2.120.0070.06014.36
5.2.110.0070.03014.34
5.2.100.0100.06014.55
5.2.90.0030.05714.50
5.2.80.0100.06714.36
5.2.70.0170.05714.42
5.2.60.0100.05714.43
5.2.50.0100.06014.59
5.2.40.0130.06014.57
5.2.30.0100.06714.46
5.2.20.0100.05314.66
5.2.10.0030.05314.16
5.2.00.0000.06711.23
5.1.60.0030.05011.23
5.1.50.0000.04711.23
5.1.40.0030.04711.23
5.1.30.0030.05311.23
5.1.20.0070.05711.23
5.1.10.0000.06011.23
5.1.00.0070.05311.23
5.0.50.0000.05011.23
5.0.40.0000.04311.23
5.0.30.0030.06311.23
5.0.20.0030.04311.23
5.0.10.0030.02311.23
5.0.00.0000.06311.23
4.4.90.0100.02711.23
4.4.80.0030.03311.23
4.4.70.0000.03711.23
4.4.60.0030.03711.23
4.4.50.0000.01711.23
4.4.40.0000.05711.23
4.4.30.0000.03711.23
4.4.20.0000.03711.23
4.4.10.0030.03711.23
4.4.00.0000.05311.23
4.3.110.0030.03311.23
4.3.100.0000.02711.23
4.3.90.0030.02311.23
4.3.80.0000.05011.23
4.3.70.0000.02011.23
4.3.60.0070.02711.23
4.3.50.0070.03011.23
4.3.40.0070.04011.23
4.3.30.0000.03711.23
4.3.20.0030.03311.23
4.3.10.0030.03311.23
4.3.00.0000.03711.23

preferences:
39.84 ms | 401 KiB | 5 Q