3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Initial Configuration class SomeClass { function f() { } } $i = 0; //fix for Notice: Undefined variable i error // Test Source function Test6_2() { //global $aHash; //we don't need that in this test global $i; //fix for Notice: Undefined variable i error /* The Test */ $t = microtime(true); while($i < 1000) { $obj =& new SomeClass(); ++$i; } usleep(100); //sleep or you'll return 0 microseconds at every run!!! return (microtime(true) - $t); }

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.1.70.0110.00617.28
8.1.60.0100.01117.38
8.1.50.0180.00117.31
8.1.40.0110.00417.23
8.1.30.0170.00617.45
8.1.20.0180.00017.35
8.1.10.0120.00617.47
8.1.00.0180.00417.38
8.0.200.0100.00716.86
8.0.190.0060.01216.92
8.0.180.0140.00316.76
8.0.170.0100.00516.89
8.0.160.0090.00816.89
8.0.150.0180.00016.79
8.0.140.0130.00516.66
8.0.130.0120.00616.77
8.0.120.0090.00515.12
8.0.110.0060.00815.12
8.0.100.0080.00415.68
8.0.90.0070.00515.77
8.0.80.0090.00515.95
8.0.70.0090.00515.88
8.0.60.0070.00715.90
8.0.50.0110.00315.96
8.0.30.0110.00816.45
8.0.20.0150.00816.44
8.0.10.0110.01116.49
8.0.00.0110.00716.46
7.4.300.0030.00416.37
7.4.290.0110.00516.33
7.4.280.0080.00816.43
7.4.270.0060.00516.40
7.4.260.0140.00316.29
7.4.250.0030.00814.85
7.4.240.0060.00814.78
7.4.230.0050.00415.66
7.4.220.0080.00415.41
7.4.210.0090.00315.53
7.4.200.0070.00515.66
7.4.190.0080.00515.63
7.4.180.0050.00715.68
7.4.160.0100.00816.02
7.4.150.0140.00715.96
7.4.140.0100.00715.85
7.4.130.0100.00815.89
7.4.120.0140.00615.98
7.4.110.0110.00815.95
7.4.100.0120.00716.04
7.4.90.0110.00715.96
7.4.80.0120.00715.93
7.4.70.0130.00715.90
7.4.60.0140.00515.96
7.4.50.0100.00815.96
7.4.40.0110.00715.94
7.4.30.0100.00716.05
7.4.20.0090.01015.98
7.4.10.0100.00916.09
7.4.00.0080.00816.08
7.3.330.0150.00016.26
7.3.320.0070.00514.46
7.3.310.0100.00314.65
7.3.300.0070.00415.19
7.3.290.0070.00415.42
7.3.280.0060.00915.69
7.3.270.0150.00515.78
7.3.260.0120.00615.79
7.3.250.0120.00715.81
7.3.240.0110.00715.82
7.3.230.0120.00715.86
7.3.220.0090.00915.80
7.3.210.0120.00615.85
7.3.200.0100.00815.83
7.3.190.0120.00615.78
7.3.180.0090.00915.87
7.3.170.0100.00815.88
7.3.160.0100.00815.91
7.3.150.0100.00715.91
7.3.140.0090.00915.95
7.3.130.0080.01015.89
7.3.120.0090.00915.93
7.3.110.0090.00815.90
7.3.100.0110.00715.88
7.3.90.0110.00816.07
7.3.80.0080.00915.98
7.3.70.0080.00815.78
7.3.60.0100.00615.69
7.3.50.0090.00715.59
7.3.40.0100.00715.57
7.3.30.0070.00915.60
7.3.20.0270.00815.94
7.3.10.0140.00715.93
7.3.00.0220.00815.92
7.2.340.0150.00915.81
7.2.330.0170.00915.80
7.2.320.0140.01015.84
7.2.310.0160.00915.87
7.2.300.0140.00915.84
7.2.290.0150.00815.94
7.2.280.0120.00915.95
7.2.270.0130.00916.00
7.2.260.0160.00615.93
7.2.250.0130.01015.99
7.2.240.0130.00915.97
7.2.230.0120.00915.98
7.2.220.0120.01115.97
7.2.210.0120.00915.95
7.2.200.0150.00715.85
7.2.190.0130.00815.79
7.2.180.0110.00915.71
7.2.170.0110.00915.70
7.2.160.0120.00715.73
7.2.150.0160.00816.03
7.2.140.0160.00916.13
7.2.130.0170.00916.15
7.2.120.0130.00916.12
7.2.110.0170.00716.10
7.2.100.0230.00816.04
7.2.90.0200.00816.04
7.2.80.0220.00716.02
7.2.70.0200.00916.00
7.2.60.0250.00915.97
7.2.50.0320.00716.00
7.2.40.0300.00916.03
7.2.30.0330.00916.04
7.2.20.0250.00816.03
7.2.10.0250.00816.02
7.2.00.0240.00816.07
7.1.330.0150.00915.26
7.1.320.0200.00715.28
7.1.310.0160.00915.25
7.1.300.0150.00515.16
7.1.290.0150.00715.18
7.1.280.0110.00814.97
7.1.270.0150.00615.00
7.1.260.0120.00815.04
7.1.250.0190.00714.84
7.1.240.0170.00814.93
7.1.230.0210.00814.91
7.1.220.0210.00814.86
7.1.210.0180.00814.86
7.1.200.0210.00914.85
7.1.190.0200.00714.89
7.1.180.0240.00714.80
7.1.170.0270.00814.82
7.1.160.0260.00814.79
7.1.150.0270.00714.80
7.1.140.0260.00614.84
7.1.130.0250.00814.79
7.1.120.0260.00814.79
7.1.110.0230.00814.78
7.1.100.0320.01014.96
7.1.90.0200.01014.91
7.1.80.0280.00714.85
7.1.70.0200.00914.89
7.1.60.0310.00917.20
7.1.50.0290.00917.15
7.1.40.0330.00817.12
7.1.30.0270.00917.10
7.1.20.0290.01018.05
7.1.10.0210.00915.13
7.1.00.0260.00915.16
7.0.330.0170.00914.66
7.0.320.0150.00814.69
7.0.310.0260.00714.58
7.0.300.0300.00714.52
7.0.290.0280.00814.50
7.0.280.0230.00714.55
7.0.270.0280.00714.51
7.0.260.0250.00714.58
7.0.250.0270.00714.59
7.0.240.0370.00914.69
7.0.230.0200.00714.77
7.0.220.0260.00614.60
7.0.210.0250.00814.69
7.0.200.0250.00814.69
7.0.190.0270.00714.66
7.0.180.0260.00914.64
7.0.170.0290.00614.70
7.0.160.0260.01114.88
7.0.150.0210.00914.88
7.0.140.0230.01014.94
7.0.130.0240.01015.00
7.0.120.0210.01015.04
7.0.110.0200.01114.95
7.0.100.0240.01014.91
7.0.90.0250.00914.91
7.0.80.0190.01014.93
7.0.70.0270.00814.90
7.0.60.0240.01014.88
7.0.50.0220.01014.91
7.0.40.0240.01014.97
7.0.30.0260.01015.03
7.0.20.0240.01014.90
7.0.10.0240.00915.03
7.0.00.0260.01015.03
5.6.400.0110.01015.05
5.6.390.0120.00915.05
5.6.380.0130.00914.92
5.6.370.0130.01114.96
5.6.360.0150.00915.02
5.6.350.0170.00814.99
5.6.340.0140.00915.02
5.6.330.0140.00814.95
5.6.320.0150.00814.98
5.6.310.0140.01115.01
5.6.300.0140.01215.35
5.6.290.0140.01215.44
5.6.280.0140.01315.43
5.6.270.0130.01415.44
5.6.260.0140.01315.36
5.6.250.0120.01415.44
5.6.240.0130.01415.40
5.6.230.0130.01315.38
5.6.220.0130.01315.39
5.6.210.0150.01215.40
5.6.200.0130.01215.43
5.6.190.0120.01315.48
5.6.180.0130.01215.44
5.6.170.0140.01115.44
5.6.160.0130.01315.46
5.6.150.0140.01315.40
5.6.140.0140.01215.47
5.6.130.0130.01415.43
5.6.120.0140.01415.39
5.6.110.0130.01215.37
5.6.100.0140.01215.36
5.6.90.0130.01315.39
5.6.80.0140.01315.30
5.6.70.0120.01315.36
5.6.60.0120.01315.33
5.6.50.0140.01215.23
5.6.40.0150.01115.27
5.6.30.0130.01315.26
5.6.20.0130.01215.25
5.6.10.0130.01415.31
5.6.00.0120.01415.29

preferences:
155.73 ms | 1394 KiB | 7 Q