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)
7.4.10.0100.13314.94
7.4.00.0080.11514.98
7.3.130.0130.12714.89
7.3.120.0030.13114.79
7.3.110.0080.12915.08
7.3.100.0070.09815.01
7.3.90.0090.10114.88
7.3.80.0060.09114.81
7.3.70.0070.10314.79
7.3.60.0060.09214.91
7.3.50.0010.09114.84
7.3.40.0080.10514.84
7.3.30.0070.09314.89
7.3.20.0040.09316.55
7.3.10.0070.09816.62
7.3.00.0030.09016.74
7.2.260.0070.15415.00
7.2.250.0080.15514.97
7.2.240.0050.11914.99
7.2.230.0060.12214.94
7.2.220.0020.12314.94
7.2.210.0040.11414.91
7.2.200.0080.10515.01
7.2.190.0030.11014.90
7.2.180.0030.11315.19
7.2.170.0060.10815.01
7.2.160.0030.10815.06
7.2.150.0050.10516.72
7.2.140.0030.12116.78
7.2.130.0030.11116.81
7.2.120.0030.12916.87
7.2.110.0080.11816.82
7.2.100.0070.10816.89
7.2.90.0060.10916.88
7.2.80.0080.10716.86
7.2.70.0090.11116.82
7.2.60.0020.11017.00
7.2.50.0060.11116.93
7.2.40.0080.11017.00
7.2.30.0040.10517.01
7.2.20.0060.10816.67
7.2.10.0030.10216.92
7.2.00.0080.11516.95
7.1.330.0050.19415.75
7.1.320.0040.19215.81
7.1.310.0040.19215.85
7.1.300.0070.19015.87
7.1.290.0030.20015.84
7.1.280.0070.19015.75
7.1.270.0040.19215.79
7.1.260.0020.19815.57
7.1.250.0070.18915.81
7.1.240.0100.20315.80
7.1.230.0030.18915.88
7.1.220.0070.19715.79
7.1.210.0080.19315.61
7.1.200.0070.18215.95
7.1.190.0070.18615.73
7.1.180.0030.19115.81
7.1.170.0000.19115.53
7.1.160.0130.18815.73
7.1.150.0030.19915.83
7.1.140.0030.19315.87
7.1.130.0030.17915.53
7.1.120.0070.18515.64
7.1.110.0030.19115.48
7.1.100.0000.18915.89
7.1.90.0070.20715.62
7.1.80.0000.20115.74
7.1.70.0000.13916.45
7.1.60.0070.14216.58
7.1.50.0050.13416.39
7.1.40.0050.13616.25
7.1.30.0100.13116.17
7.1.20.0050.13416.29
7.1.10.0030.15316.25
7.1.00.0080.13516.31
7.0.330.0000.19415.41
7.0.320.0030.18215.44
7.0.310.0100.17815.43
7.0.300.0030.19115.28
7.0.290.0030.19315.25
7.0.280.0030.21215.37
7.0.270.0070.19315.11
7.0.260.0070.17915.41
7.0.250.0030.19215.11
7.0.240.0000.19615.58
7.0.230.0000.21315.47
7.0.220.0030.19815.38
7.0.210.0040.18215.38
7.0.200.0050.14016.18
7.0.190.0000.14316.10
7.0.180.0020.15515.87
7.0.170.0030.13915.90
7.0.160.0070.13215.95
7.0.150.0070.14815.97
7.0.140.0030.14615.88
7.0.130.0030.14415.89
7.0.120.0030.14216.00
7.0.110.0050.15515.76
7.0.100.0020.14115.78
7.0.90.0050.13515.74
7.0.80.0070.13815.92
7.0.70.0020.14115.87
7.0.60.0050.14115.74
7.0.50.0050.15316.02
7.0.40.0050.14114.88
7.0.30.0020.15114.89
7.0.20.0050.16714.98
7.0.10.0080.14214.80
7.0.00.0020.14814.84
5.6.400.0030.34714.42
5.6.390.0030.37414.32
5.6.380.0100.35014.53
5.6.370.0030.37514.23
5.6.360.0030.38214.53
5.6.350.0000.37114.01
5.6.340.0000.34514.30
5.6.330.0070.37114.52
5.6.320.0100.35013.99
5.6.310.0070.38314.20
5.6.300.0030.31817.52
5.6.290.0050.27817.63
5.6.280.0070.27617.70
5.6.270.0030.27717.57
5.6.260.0070.28817.67
5.6.250.0020.30917.70
5.6.240.0030.28817.61
5.6.230.0000.29717.55
5.6.220.0050.30717.60
5.6.210.0050.28617.64
5.6.200.0030.29417.72
5.6.190.0000.27717.63
5.6.180.0020.30817.67
5.6.170.0050.28317.62
5.6.160.0050.26517.51
5.6.150.0070.29117.67
5.6.140.0050.29817.63
5.6.130.0080.27417.46
5.6.120.0080.29717.70
5.6.110.0030.31117.69
5.6.100.0080.31417.66
5.6.90.0030.31217.50
5.6.80.0050.27917.35
5.6.70.0050.30717.10
5.6.60.0030.29417.35
5.6.50.0030.28317.14
5.6.40.0000.27617.19
5.6.30.0030.31617.28
5.6.20.0050.28717.27
5.6.10.0050.31217.28
5.6.00.0080.29117.32
5.5.380.0020.31115.74
5.5.370.0050.29015.85
5.5.360.0050.29515.81
5.5.350.0030.30015.86
5.5.340.0030.27716.16
5.5.330.0050.27616.10
5.5.320.0020.33015.94
5.5.310.0030.29016.34
5.5.300.0020.31016.19
5.5.290.0100.29616.19
5.5.280.0030.29816.22
5.5.270.0070.27916.03
5.5.260.0310.27616.14
5.5.250.0070.30315.87
5.5.240.0020.32715.95
5.5.230.0020.29515.89
5.5.220.0020.28815.89
5.5.210.0020.28815.82
5.5.200.0030.28515.94
5.5.190.0050.30015.77
5.5.180.0070.28815.80
5.5.170.0030.36514.23
5.5.160.0030.28015.83
5.5.150.0050.30815.90
5.5.140.0030.31115.63
5.5.130.0070.31615.73
5.5.120.0030.30115.88
5.5.110.0050.29215.75
5.5.100.0000.31415.75
5.5.90.0120.29415.86
5.5.80.0050.29115.61
5.5.70.0000.30015.71
5.5.60.0020.30815.57
5.5.50.0030.33215.73
5.5.40.0050.29115.81
5.5.30.0350.29715.65
5.5.20.0020.30515.42
5.5.10.0120.27115.82
5.5.00.0050.28315.66
5.4.450.0030.29515.20
5.4.440.0000.28915.38
5.4.430.0000.31115.31
5.4.420.0050.30815.19
5.4.410.0080.31615.28
5.4.400.0030.28814.94
5.4.390.0030.30114.94
5.4.380.0000.30315.14
5.4.370.0000.28115.04
5.4.360.0020.32915.06
5.4.350.0030.32915.19
5.4.340.0000.28714.98
5.4.330.0030.38511.08
5.4.320.0020.30015.20
5.4.310.0070.32615.06
5.4.300.0050.29615.07
5.4.290.0030.29815.18
5.4.280.0050.31715.19
5.4.270.0080.32715.07
5.4.260.0020.27915.00
5.4.250.0050.30115.11
5.4.240.0030.29914.96
5.4.230.0030.30014.96
5.4.220.0070.31414.93
5.4.210.0030.33915.01
5.4.200.0030.33414.95
5.4.190.0070.28115.00
5.4.180.0050.30914.92
5.4.170.0070.28614.97
5.4.160.0370.30415.10
5.4.150.0030.32315.13
5.4.140.0050.30613.72
5.4.130.0050.28413.79
5.4.120.0050.27613.71
5.4.110.0020.31013.90
5.4.100.0320.31613.69
5.4.90.0030.29713.92
5.4.80.0070.31913.83
5.4.70.0030.33813.88
5.4.60.0150.30613.74
5.4.50.0030.33513.89
5.4.40.0030.29113.63
5.4.30.0050.28813.81
5.4.20.0030.28413.88
5.4.10.0050.31313.95
5.4.00.0030.30913.64
5.3.290.0120.37612.73
5.3.280.0030.36012.62
5.3.270.0030.36812.71
5.3.260.0050.36412.65
5.3.250.0050.37212.74
5.3.240.0030.38212.66
5.3.230.0030.38512.62
5.3.220.0030.39812.42
5.3.210.0020.42212.48
5.3.200.0020.41712.47
5.3.190.0020.36112.45
5.3.180.0020.36612.69
5.3.170.0020.35512.54
5.3.160.0030.41812.63
5.3.150.0030.37812.63
5.3.140.0030.34612.56
5.3.130.0030.36312.71
5.3.120.0020.36212.53
5.3.110.0050.35512.70
5.3.100.0000.37212.59
5.3.90.0030.38812.65
5.3.80.0030.36412.55
5.3.70.0020.35012.54
5.3.60.0050.40412.52
5.3.50.0070.39412.50
5.3.40.0070.37512.60
5.3.30.0030.39012.67
5.3.20.0020.33712.61
5.3.10.0020.34512.50
5.3.00.0030.34312.51
5.2.170.0000.41214.63
5.2.160.0030.43114.63
5.2.150.0030.40314.63
5.2.140.0030.39714.63
5.2.130.0000.38014.63
5.2.120.1560.40914.63
5.2.110.0000.37314.63
5.2.100.0070.38914.63
5.2.90.0030.39414.63
5.2.80.0100.37514.63
5.2.70.0000.41714.63
5.2.60.0000.40214.63
5.2.50.0070.34314.63
5.2.40.0100.38614.63
5.2.30.0030.42314.63
5.2.20.0030.39014.63
5.2.10.0070.38414.63
5.2.00.0030.36714.63
5.1.60.0000.38514.63
5.1.50.0030.34814.63
5.1.40.0070.36814.63
5.1.30.0000.35014.63
5.1.20.0070.37214.63
5.1.10.0070.40414.63
5.1.00.0100.37214.63
5.0.50.0030.60814.63
5.0.40.0030.60914.63
5.0.30.0070.56714.63
5.0.20.0030.52714.63
5.0.10.0070.54914.63
5.0.00.0000.59614.63
4.4.90.0030.63614.63
4.4.80.0000.59614.63
4.4.70.0000.59214.63
4.4.60.0030.64114.63
4.4.50.0000.62614.63
4.4.40.0070.55214.63
4.4.30.0000.59414.63
4.4.20.0000.59214.63
4.4.10.0000.57514.63
4.4.00.0070.65114.63
4.3.110.0030.59914.63
4.3.100.0100.63914.63
4.3.90.0000.59114.63
4.3.80.0030.63614.63
4.3.70.0000.57314.63
4.3.60.0030.58514.63
4.3.50.0000.58714.63
4.3.40.0000.56814.63
4.3.30.0000.54814.63
4.3.20.0030.54614.63
4.3.10.0030.57014.63
4.3.00.0030.57014.63

preferences:
25.88 ms | 413 KiB | 14 Q