3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { bar(); } function bar() { baz(); } function baz() { boom(); } function boom() { return false; } function test($n) { for ($i = 0; $i < $n; $i++) { foo(); } } $n = 1000000; $t = microtime(true); test($n); echo (microtime(true) - $t)*1000000/$n . ' us/iteration';

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.2.90.0260.04917.50
8.2.80.0300.04017.13
8.2.70.0200.05217.50
8.2.60.0230.04917.25
8.2.50.0180.05417.24
8.2.40.0250.04517.61
8.2.30.0240.05217.23
8.2.20.0230.04617.38
8.2.10.0200.04917.38
8.2.00.0170.04917.50
8.1.220.0230.05017.25
8.1.210.0250.04717.11
8.1.200.0270.04716.98
8.1.190.0230.05016.88
8.1.180.0240.04817.00
8.1.170.0270.05016.88
8.1.160.0320.04916.97
8.1.150.0220.05417.00
8.1.140.0260.04916.88
8.1.130.0180.05417.22
8.1.120.0230.04917.25
8.1.110.0230.05617.13
8.1.100.0210.05217.25
8.1.90.0140.05917.13
8.1.80.0280.04416.97
8.1.70.0290.04517.00
8.1.60.0200.05317.22
8.1.50.0170.05517.13
8.1.40.0180.05517.46
8.1.30.0230.05016.98
8.1.20.0230.05217.38
8.1.10.0100.06517.22
8.1.00.0270.04616.88
8.0.300.0230.05016.50
8.0.290.0220.05216.36
8.0.280.0250.04916.47
8.0.270.0230.05016.38
8.0.260.0250.04816.50
8.0.250.0170.05616.50
8.0.240.0180.05716.63
8.0.230.0140.06016.50
8.0.220.0290.04516.24
8.0.210.0170.05616.25
8.0.200.0290.04416.50
8.0.190.0170.05616.37
8.0.180.0290.05116.50
8.0.170.0220.05316.61
8.0.160.0200.05216.50
8.0.150.0340.05216.25
8.0.140.0250.05316.50
8.0.130.0180.05516.50
8.0.120.0160.05916.48
8.0.110.0260.04816.63
8.0.100.0260.04816.50
8.0.90.0250.04916.50
8.0.80.0140.05916.25
8.0.70.0300.04316.60
8.0.60.0210.05216.35
8.0.50.0250.05016.38
8.0.30.0170.06016.38
8.0.20.0280.04516.25
8.0.10.0250.04716.50
8.0.00.0170.05516.50
7.4.330.0130.05416.19
7.4.320.0150.05916.19
7.4.300.0240.04816.19
7.4.290.0190.05416.19
7.4.280.0190.05516.19
7.4.270.0200.05316.19
7.4.260.0250.05016.25
7.4.250.0200.05416.19
7.4.240.0120.05916.25
7.4.230.0270.04516.19
7.4.220.0240.04916.25
7.4.210.0240.04816.19
7.4.200.0140.05816.19
7.4.190.0240.05116.19
7.4.180.0320.04816.19
7.4.160.0260.05716.19
7.4.150.0210.05516.19
7.4.140.0230.05016.19
7.4.130.0230.05016.19
7.4.120.0120.06116.25
7.4.110.0200.05216.19
7.4.100.0230.05116.25
7.4.90.0180.05616.25
7.4.80.0250.04916.19
7.4.70.0240.05216.19
7.4.60.0200.05416.19
7.4.50.0300.04416.19
7.4.40.0200.05416.19
7.4.30.0190.05216.19
7.4.20.0230.04916.19
7.4.10.0150.09315.56
7.4.00.0110.09915.28
7.3.330.0240.04316.19
7.3.320.0230.04616.19
7.3.310.0200.05016.19
7.3.300.0200.04816.19
7.3.290.0230.04516.19
7.3.280.0250.04316.19
7.3.270.0240.04416.19
7.3.260.0220.04716.19
7.3.250.0170.05116.19
7.3.240.0220.04516.25
7.3.230.0140.05316.19
7.3.220.0280.04116.19
7.3.210.0200.04716.19
7.3.200.0290.04316.19
7.3.190.0220.04716.19
7.3.180.0300.04316.19
7.3.170.0300.04316.19
7.3.160.0270.04416.19
7.3.150.0310.04516.19
7.3.140.0210.04916.19
7.3.130.0170.08915.54
7.3.120.0070.11115.14
7.3.110.0120.10815.36
7.3.100.0100.08515.30
7.3.90.0130.08615.23
7.3.80.0090.08015.17
7.3.70.0110.08815.14
7.3.60.0080.08215.23
7.3.50.0060.08115.18
7.3.40.0080.09215.22
7.3.30.0080.08415.22
7.3.20.0080.08216.90
7.3.10.0080.08916.88
7.3.00.0050.08316.97
7.2.340.0200.06016.19
7.2.330.0190.06316.19
7.2.320.0170.06316.25
7.2.310.0170.06416.19
7.2.300.0280.05216.19
7.2.290.0200.06016.19
7.2.280.0200.06016.19
7.2.270.0200.06016.25
7.2.260.0130.10715.60
7.2.250.0120.13015.28
7.2.240.0090.10415.29
7.2.230.0070.10815.25
7.2.220.0090.10515.25
7.2.210.0090.10015.23
7.2.200.0110.09515.31
7.2.190.0070.09915.22
7.2.180.0080.10015.45
7.2.170.0080.09715.34
7.2.160.0090.09215.46
7.2.150.0100.09017.12
7.2.140.0110.09817.17
7.2.130.0080.09817.15
7.2.120.0080.11217.19
7.2.110.0110.10417.17
7.2.100.0080.09817.21
7.2.90.0080.09817.20
7.2.80.0090.09717.18
7.2.70.0140.09617.11
7.2.60.0070.09717.32
7.2.50.0110.09717.21
7.2.40.0110.09717.31
7.2.30.0060.09617.20
7.2.20.0110.09617.03
7.2.10.0080.09117.23
7.2.00.0120.10117.22
7.1.330.0050.16516.03
7.1.320.0080.16116.19
7.1.310.0090.16016.16
7.1.300.0090.16016.18
7.1.290.0060.16816.16
7.1.280.0080.16116.07
7.1.270.0100.15916.10
7.1.260.0050.16715.93
7.1.250.0080.16216.12
7.1.240.0140.14316.44
7.1.230.0130.12616.45
7.1.220.0130.13216.41
7.1.210.0120.13316.15
7.1.200.0110.12616.58
7.1.190.0120.12816.37
7.1.180.0080.13316.30
7.1.170.0120.12716.16
7.1.160.0180.12816.30
7.1.150.0120.13316.25
7.1.140.0080.13716.45
7.1.130.0070.12716.26
7.1.120.0150.12516.34
7.1.110.0110.13016.24
7.1.100.0130.12716.42
7.1.90.0140.13916.29
7.1.80.0100.13816.44
7.1.70.0080.11416.61
7.1.60.0120.11516.67
7.1.50.0120.11016.58
7.1.40.0080.11416.49
7.1.30.0110.11116.44
7.1.20.0130.10916.49
7.1.10.0090.12316.54
7.1.00.0120.11216.49
7.0.330.0070.13816.01
7.0.320.0110.12815.92
7.0.310.0190.12415.98
7.0.300.0120.13515.89
7.0.290.0100.13415.93
7.0.280.0070.14716.05
7.0.270.0150.13015.94
7.0.260.0110.12716.03
7.0.250.0070.13815.99
7.0.240.0100.13516.22
7.0.230.0100.14216.19
7.0.220.0080.13816.00
7.0.210.0100.12716.07
7.0.200.0110.11616.39
7.0.190.0040.12116.39
7.0.180.0050.13016.03
7.0.170.0110.11416.23
7.0.160.0120.11216.19
7.0.150.0120.12316.22
7.0.140.0100.12016.17
7.0.130.0100.11916.26
7.0.120.0090.11816.21
7.0.110.0070.13016.13
7.0.100.0050.12116.09
7.0.90.0090.11516.05
7.0.80.0110.11616.13
7.0.70.0050.12016.14
7.0.60.0110.11616.04
7.0.50.0100.12716.20
7.0.40.0080.11915.51
7.0.30.0070.12415.43
7.0.20.0130.13215.49
7.0.10.0120.11815.38
7.0.00.0080.12315.36
5.6.400.0110.24915.30
5.6.390.0090.26315.26
5.6.380.0120.25215.36
5.6.370.0100.26115.21
5.6.360.0120.26515.36
5.6.350.0120.26215.10
5.6.340.0090.24615.24
5.6.330.0070.27315.36
5.6.320.0150.25715.09
5.6.310.0150.26515.19
5.6.300.0100.26317.07
5.6.290.0080.24317.15
5.6.280.0130.23117.20
5.6.270.0080.24117.11
5.6.260.0100.24317.17
5.6.250.0080.25517.20
5.6.240.0070.24217.14
5.6.230.0080.24517.10
5.6.220.0110.25317.13
5.6.210.0100.23917.16
5.6.200.0110.24917.21
5.6.190.0090.23217.15
5.6.180.0100.25217.18
5.6.170.0100.23817.15
5.6.160.0080.22717.07
5.6.150.0090.25017.18
5.6.140.0090.24817.15
5.6.130.0120.23117.04
5.6.120.0110.24717.19
5.6.110.0070.25917.19
5.6.100.0110.26317.17
5.6.90.0100.25517.07
5.6.80.0070.23716.96
5.6.70.0100.25316.79
5.6.60.0080.24516.97
5.6.50.0090.23716.83
5.6.40.0060.23316.85
5.6.30.0080.26016.92
5.6.20.0090.24016.91
5.6.10.0110.25616.92
5.6.00.0100.24516.94
5.5.380.0060.26115.89
5.5.370.0130.24015.97
5.5.360.0110.24315.94
5.5.350.0110.24515.97
5.5.340.0070.23516.17
5.5.330.0080.23616.13
5.5.320.0080.26816.03
5.5.310.0100.24216.29
5.5.300.0070.25916.19
5.5.290.0130.24516.19
5.5.280.0100.24516.21
5.5.270.0080.23816.08
5.5.260.0260.23316.16
5.5.250.0090.25215.98
5.5.240.0090.26416.03
5.5.230.0070.24615.99
5.5.220.0060.24115.99
5.5.210.0080.24015.94
5.5.200.0100.23716.02
5.5.190.0060.25115.91
5.5.180.0090.24115.93
5.5.170.0080.25615.21
5.5.160.0090.23415.95
5.5.150.0080.25516.00
5.5.140.0080.25615.82
5.5.130.0100.25915.88
5.5.120.0120.24715.99
5.5.110.0080.24315.90
5.5.100.0060.25815.89
5.5.90.0130.24515.97
5.5.80.0090.24315.80
5.5.70.0060.24815.87
5.5.60.0060.25515.78
5.5.50.0070.27015.88
5.5.40.0100.24715.94
5.5.30.0290.24815.83
5.5.20.0070.25115.68
5.5.10.0140.22915.94
5.5.00.0100.23715.84
5.4.450.0080.24915.53
5.4.440.0030.24815.65
5.4.430.0060.25515.60
5.4.420.0090.25615.52
5.4.410.0100.26015.58
5.4.400.0070.24115.36
5.4.390.0070.25015.35
5.4.380.0060.25515.49
5.4.370.0040.23715.42
5.4.360.0080.27215.44
5.4.350.0070.27015.52
5.4.340.0040.24115.39
5.4.330.0050.27013.63
5.4.320.0060.24915.53
5.4.310.0090.27415.43
5.4.300.0080.25215.45
5.4.290.0090.24615.51
5.4.280.0060.26215.52
5.4.270.0100.27415.45
5.4.260.0090.23615.39
5.4.250.0080.25615.47
5.4.240.0070.25215.37
5.4.230.0080.25715.37
5.4.220.0090.26815.35
5.4.210.0060.28215.40
5.4.200.0090.27615.36
5.4.190.0110.24115.39
5.4.180.0080.26215.34
5.4.170.0070.24215.38
5.4.160.0290.25915.46
5.4.150.0050.26715.48
5.4.140.0100.25114.54
5.4.130.0090.24014.59
5.4.120.0080.23314.53
5.4.110.0060.25514.66
5.4.100.0230.26314.52
5.4.90.0070.25214.68
5.4.80.0080.26314.62
5.4.70.0060.27514.65
5.4.60.0160.25214.56
5.4.50.0080.27214.65
5.4.40.0040.24714.48
5.4.30.0060.24514.60
5.4.20.0080.24014.65
5.4.10.0070.26114.70
5.4.00.0040.26114.49
5.3.290.0110.33313.88
5.3.280.0080.31913.81
5.3.270.0060.33013.87
5.3.260.0070.32613.83
5.3.250.0070.33213.89
5.3.240.0090.33813.84
5.3.230.0080.33613.81
5.3.220.0070.34613.68
5.3.210.0060.36413.72
5.3.200.0070.36113.71
5.3.190.0070.32613.70
5.3.180.0050.32413.86
5.3.170.0050.32113.76
5.3.160.0070.36213.82
5.3.150.0060.33813.82
5.3.140.0090.31713.77
5.3.130.0040.32613.87
5.3.120.0050.32413.75
5.3.110.0090.31913.86
5.3.100.0060.33413.79
5.3.90.0060.34213.83
5.3.80.0060.32613.77
5.3.70.0020.31913.75
5.3.60.0060.35413.74
5.3.50.0100.34413.73
5.3.40.0080.33313.80
5.3.30.0040.34913.85
5.3.20.0030.31213.80
5.3.10.0050.31413.73
5.3.00.0060.31213.74

preferences:
42.07 ms | 400 KiB | 5 Q