3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time=microtime(1); for ($i=0;$i<1000000;$i++) new stdClass; echo microtime(1)-$time,': new stdClass'."\n"; $time=microtime(1); for ($i=0;$i<1000000;$i++) (object)[]; echo microtime(1)-$time,': (object)[]'."\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.0050.17714.91
7.3.120.0040.16014.76
7.3.110.0060.18314.77
7.3.100.0030.16414.88
7.3.90.0060.15514.91
7.3.80.0090.15814.85
7.3.70.0080.14814.93
7.3.60.0080.15014.69
7.3.50.0040.15614.91
7.3.40.0010.15714.84
7.3.30.0030.17614.82
7.3.20.0050.14816.76
7.3.10.0020.15316.73
7.3.00.0040.14516.71
7.2.250.0100.17615.15
7.2.240.0080.17315.05
7.2.230.0090.15315.07
7.2.220.0010.16714.81
7.2.210.0070.14515.11
7.2.200.0020.16815.06
7.2.190.0070.15815.00
7.2.180.0070.14214.83
7.2.170.0070.15915.01
7.2.160.0070.15614.86
7.2.150.0070.14016.73
7.2.140.0130.13516.89
7.2.130.0130.14116.80
7.2.120.0000.14616.79
7.2.110.0130.13416.70
7.2.100.0130.14716.94
7.2.90.0100.14416.94
7.2.80.0100.13916.80
7.2.70.0070.14016.88
7.2.60.0070.12116.54
7.2.50.0030.15416.70
7.2.40.0030.13916.92
7.2.30.0030.14016.91
7.2.20.0100.14017.05
7.2.10.0000.14917.09
7.2.00.0020.12918.22
7.1.330.0030.25815.80
7.1.320.0040.24015.76
7.1.310.0040.23715.77
7.1.300.0070.24915.81
7.1.290.0030.25115.75
7.1.280.0040.25315.63
7.1.270.0030.25315.83
7.1.260.0060.23815.87
7.1.250.0100.25515.70
7.1.100.0030.12818.28
7.1.70.0030.17717.11
7.1.60.0100.18119.40
7.1.50.0030.17016.98
7.1.00.0030.19722.48
7.0.200.0300.13716.68
7.0.140.0070.21021.99
7.0.100.0130.17720.02
7.0.90.0130.19019.96
7.0.80.0130.19319.95
7.0.70.0030.19319.99
7.0.60.0070.18020.06
7.0.50.0200.21320.22
7.0.40.0070.18720.08
7.0.30.0030.20719.94
7.0.20.0070.21720.12
7.0.10.0000.17320.17
7.0.00.0070.19020.15
5.6.280.0070.32321.04
5.6.250.0130.25320.76
5.6.240.0130.23320.55
5.6.230.0100.28020.65
5.6.220.0030.22020.64
5.6.210.0070.21720.65
5.6.200.0170.26321.01
5.6.190.0000.24721.09
5.6.180.0130.22721.01
5.6.170.0100.25721.00
5.6.160.0000.25721.03
5.6.150.0070.27021.07
5.6.140.0070.23021.02
5.6.130.0070.29721.00
5.6.120.0100.32021.00
5.6.110.0130.25721.14
5.6.100.0100.27020.99
5.6.90.0000.23021.09
5.6.80.0030.24320.41
5.6.70.0000.21720.43
5.6.60.0030.26320.52
5.6.50.0070.28320.30
5.6.40.0100.28720.45
5.6.30.0100.25720.39
5.6.20.0070.23320.33
5.6.10.0070.25020.29
5.6.00.0030.23020.29
5.5.380.0070.23720.41
5.5.370.0030.26720.42
5.5.360.0200.24020.32
5.5.350.0070.28020.41
5.5.340.0070.27720.87
5.5.330.0070.25720.86
5.5.320.0170.26320.76
5.5.310.0030.26720.85
5.5.300.0070.21320.81
5.5.290.0070.27320.89
5.5.280.0100.29020.86
5.5.270.0130.27020.80
5.5.260.0100.23020.62
5.5.250.0030.21720.59
5.5.240.0070.21020.24
5.5.230.0030.27020.15
5.5.220.0170.26020.24
5.5.210.0030.21720.09
5.5.200.0100.20020.09
5.5.190.0100.20319.96
5.5.180.0070.26020.25
5.5.160.0130.24020.23
5.5.150.0030.26020.11
5.5.140.0000.25320.17
5.5.130.0130.25720.26
5.5.120.0070.30320.22
5.5.110.0130.26720.10
5.5.100.0100.27720.05
5.5.90.0100.28320.03
5.5.80.0070.27020.08
5.5.70.0030.24320.15
5.5.60.0130.26020.14
5.5.50.0030.25720.10
5.5.40.0070.26020.04
5.5.30.0100.22019.99
5.5.20.0100.20719.87
5.5.10.0000.21720.06
5.5.00.0030.20020.01
5.4.450.0100.27319.14
5.4.440.0100.25019.46
5.4.430.0100.28719.13
5.4.420.0100.21719.42
5.4.410.0030.24019.24
5.4.400.0070.24718.96
5.4.390.0130.20019.12
5.4.380.0030.26019.08
5.4.370.0030.27318.79
5.4.360.0130.28018.83
5.4.350.0030.28719.03
5.4.340.0070.24718.90
5.4.320.0130.24319.12
5.4.310.0070.28019.07
5.4.300.0030.23019.05
5.4.290.0300.21719.02
5.4.280.0030.25018.89
5.4.270.0100.29318.90
5.4.260.0130.23319.11
5.4.250.0070.25319.22
5.4.240.0100.25719.02
5.4.230.0170.26718.96
5.4.220.0000.32719.03
5.4.210.0070.27718.96
5.4.200.0430.22318.96
5.4.190.0070.25719.09
5.4.180.0030.21019.04
5.4.170.0130.21318.95
5.4.160.0000.19019.03
5.4.150.0030.20019.02
5.4.140.0000.17016.27
5.4.130.0000.23016.05
5.4.120.0130.21316.30
5.4.110.0000.21716.42
5.4.100.0030.21316.26
5.4.90.0070.16716.26
5.4.80.0030.22016.32
5.4.70.0000.17016.29
5.4.60.0000.24016.21
5.4.50.0070.16316.23
5.4.40.0030.17716.30
5.4.30.0000.17716.39
5.4.20.0030.19716.35
5.4.10.0030.25016.23
5.4.00.0070.25315.62
5.3.290.0100.06714.49
5.3.280.0100.06714.55
5.3.270.0070.03314.57
5.3.260.0100.02314.49
5.3.250.0070.03014.57
5.3.240.0030.03714.60
5.3.230.0000.04014.56
5.3.220.0070.03714.53
5.3.210.0000.04314.51
5.3.200.0030.03714.58
5.3.190.0070.03314.56
5.3.180.0030.03714.53
5.3.170.0000.03314.43
5.3.160.0000.03714.52
5.3.150.0000.04314.43
5.3.140.0100.02714.52
5.3.130.0000.04314.54
5.3.120.0000.03314.50
5.3.110.0030.03314.54
5.3.100.0070.07713.99
5.3.90.0030.04713.98
5.3.80.0100.07013.88
5.3.70.0130.03313.93
5.3.60.0070.07713.98
5.3.50.0070.05713.72
5.3.40.0030.05713.93
5.3.30.0100.07013.91
5.3.20.0100.04013.55
5.3.10.0030.03313.59
5.3.00.0030.03713.50
5.2.170.0030.07011.13
5.2.160.0070.05711.07
5.2.150.0070.03710.98
5.2.140.0130.04711.14
5.2.130.0030.05011.09
5.2.120.0100.03311.09
5.2.110.0070.02710.92
5.2.100.0030.06010.94
5.2.90.0000.05711.06
5.2.80.0000.06711.04
5.2.70.0000.04311.05
5.2.60.0070.05711.09
5.2.50.0070.05710.96
5.2.40.0000.03311.02
5.2.30.0030.03310.89
5.2.20.0100.05711.00
5.2.10.0100.02010.76
5.2.00.0070.04710.77
5.1.60.0070.0379.88
5.1.50.0100.0209.82
5.1.40.0030.05010.02
5.1.30.0030.05010.39
5.1.20.0100.03010.38
5.1.10.0030.05010.09
5.1.00.0070.05010.11
5.0.50.0000.0438.39
5.0.40.0000.0438.39
5.0.30.0030.0338.31
5.0.20.0070.0208.31
5.0.10.0070.0438.31
5.0.00.0030.0678.31
4.4.90.0070.0338.31
4.4.80.0000.0308.31
4.4.70.0000.0338.31
4.4.60.0000.0338.31
4.4.50.0030.0238.31
4.4.40.0070.0438.31
4.4.30.0070.0138.31
4.4.20.0030.0378.31
4.4.10.0000.0338.31
4.4.00.0000.0378.31
4.3.110.0000.0208.31
4.3.100.0030.0278.31
4.3.90.0030.0138.31
4.3.80.0000.0438.31
4.3.70.0000.0238.31
4.3.60.0070.0308.31
4.3.50.0100.0278.31
4.3.40.0070.0408.31
4.3.30.0030.0238.31
4.3.20.0000.0208.31
4.3.10.0000.0278.31
4.3.00.0000.0408.31

preferences:
34.93 ms | 401 KiB | 5 Q