3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($index=0){ if($index<10000) f(++$index); } $time=microtime(true); f(); echo microtime(true)-$time; ?>

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.2.00.0070.00319.35
7.1.70.0060.00617.13
7.1.60.0100.01619.32
7.1.50.0060.00616.90
7.1.00.0070.04722.36
7.0.200.0000.00918.53
7.0.140.0100.07024.13
7.0.110.0170.09021.59
7.0.100.0230.06721.61
7.0.90.0070.04321.35
7.0.80.0070.09021.41
7.0.70.0130.07021.44
7.0.60.0070.08021.39
7.0.50.0200.04321.39
7.0.40.0070.05319.73
7.0.30.0000.04719.85
7.0.20.0030.04019.85
7.0.10.0100.03719.86
7.0.00.0070.03719.87
5.6.280.0130.06023.95
5.6.260.0070.08323.60
5.6.250.0100.07323.64
5.6.240.0200.06723.66
5.6.230.0170.08023.65
5.6.220.0030.08023.63
5.6.210.0100.08023.49
5.6.200.0170.08723.66
5.6.190.0100.05023.95
5.6.180.0270.02723.71
5.6.170.0070.05323.71
5.6.160.0170.04023.79
5.6.150.0070.04323.75
5.6.140.0030.04723.79
5.6.130.0070.04023.73
5.6.120.0100.04023.75
5.6.110.0100.04323.67
5.6.100.0070.07323.74
5.6.90.0030.04323.71
5.6.80.0000.04323.07
5.6.70.0070.03723.16
5.6.60.0030.04723.03
5.6.50.0130.07023.16
5.6.40.0130.03323.15
5.6.30.0100.06023.11
5.6.20.0070.04023.15
5.6.10.0000.04323.06
5.6.00.0070.04022.91
5.5.380.0030.08323.45
5.5.370.0130.07323.47
5.5.360.0100.06023.65
5.5.350.0070.08323.47
5.5.340.0100.08024.08
5.5.330.0100.07323.89
5.5.320.0130.04724.11
5.5.310.0100.04323.96
5.5.300.0170.03024.02
5.5.290.0030.04323.99
5.5.280.0030.07723.99
5.5.270.0070.07323.78
5.5.260.0030.04324.05
5.5.250.0030.04323.71
5.5.240.0000.04323.26
5.5.230.0000.05723.28
5.5.220.0030.06723.25
5.5.210.0170.03323.17
5.5.200.0070.03723.34
5.5.190.0100.08023.43
5.5.180.0070.04723.36
5.5.160.0000.04323.27
5.5.150.0070.04023.28
5.5.140.0100.03723.39
5.5.130.0100.03723.34
5.5.120.0100.08023.42
5.5.110.0100.04323.38
5.5.100.0100.08023.24
5.5.90.0070.04723.12
5.5.80.0070.07023.36
5.5.70.0070.07723.24
5.5.60.0130.07323.16
5.5.50.0100.07023.33
5.5.40.0100.06723.11
5.5.30.0070.07723.30
5.5.20.0030.05323.28
5.5.10.0130.07023.13
5.5.00.0100.07723.30
5.4.450.0070.06022.43
5.4.440.0100.08022.04
5.4.430.0070.07322.38
5.4.420.0070.04022.45
5.4.410.0100.05722.20
5.4.400.0100.03022.00
5.4.390.0070.03722.38
5.4.380.0130.03022.16
5.4.370.0030.04722.09
5.4.360.0030.04022.00
5.4.350.0030.04022.03
5.4.340.0100.03322.08
5.4.320.0070.05022.05
5.4.310.0030.04022.02
5.4.300.0030.04022.05
5.4.290.0000.04321.86
5.4.280.0130.07021.78
5.4.270.0070.05722.00
5.4.260.0170.05322.20
5.4.250.0100.07322.00
5.4.240.0170.06722.20
5.4.230.0100.06722.36
5.4.220.0170.06722.18
5.4.210.0070.07721.70
5.4.200.0070.08322.09
5.4.190.0100.07022.05
5.4.180.0030.06722.02
5.4.170.0100.07722.20
5.4.160.0070.08021.99
5.4.150.0000.08721.95
5.4.140.0030.08319.34
5.4.130.0000.06719.26
5.4.120.0100.07719.52
5.4.110.0130.07019.59
5.4.100.0030.08319.57
5.4.90.0000.07319.34
5.4.80.0100.07019.43
5.4.70.0100.04319.45
5.4.60.0070.07719.47
5.4.50.0070.07719.39
5.4.40.0130.07019.54
5.4.30.0130.07019.48
5.4.20.0070.07319.55
5.4.10.0070.05319.31
5.4.00.0100.07018.86
5.3.290.0070.03717.75
5.3.280.0130.06317.76
5.3.270.0130.07717.69
5.3.260.0000.05717.77
5.3.250.0170.06317.86
5.3.240.0130.07317.94
5.3.230.0030.08317.79
5.3.220.0200.06717.91
5.3.210.0030.05317.84
5.3.200.0170.06317.78
5.3.190.0130.06717.60
5.3.180.0100.07317.98
5.3.170.0070.08017.82
5.3.160.0100.07017.75
5.3.150.0130.03717.81
5.3.140.0200.06317.70
5.3.130.0130.07017.63
5.3.120.0070.05017.95
5.3.110.0070.07317.75
5.3.100.0070.06717.25
5.3.90.0070.07017.18
5.3.80.0030.07717.21
5.3.70.0030.08017.15
5.3.60.0070.08017.14
5.3.50.0030.07317.13
5.3.40.0100.06717.14
5.3.30.0200.06017.04
5.3.20.0270.02716.76
5.3.10.0100.07316.79
5.3.00.0100.07716.77
5.2.170.0100.06319.34
5.2.160.0130.06319.43
5.2.150.0070.07319.37
5.2.140.0100.07319.57
5.2.130.0130.07019.30
5.2.120.0200.05019.29
5.2.110.0170.03319.32
5.2.100.0030.06019.33
5.2.90.0100.06019.29
5.2.80.0030.07319.38
5.2.70.0170.06019.38
5.2.60.0130.04019.34
5.2.50.0100.06719.16
5.2.40.0130.06719.70
5.2.30.0100.07019.13
5.2.20.0130.06319.23
5.2.10.0130.05318.21
5.2.00.0030.06719.08
5.1.60.0070.05018.63
5.1.50.0030.05318.79
5.1.40.0070.06318.79
5.1.30.0070.06719.16
5.1.20.0100.06019.16
5.1.10.0030.06718.90
5.1.00.0200.04319.13
5.0.50.0100.05317.96
5.0.40.0030.05717.76
5.0.30.0070.07017.29
5.0.20.0030.05317.33
5.0.10.0070.04717.52
5.0.00.0070.07717.41
4.4.90.0100.03714.82
4.4.80.0100.03014.98
4.4.70.0030.03714.88
4.4.60.0030.02314.84
4.4.50.0070.03714.91
4.4.40.0070.05714.85
4.4.30.0100.03714.93
4.4.20.0100.03714.95
4.4.10.0130.02714.92
4.4.00.0070.04714.90
4.3.110.0030.04316.81
4.3.100.0100.02016.61
4.3.90.0130.03316.58
4.3.80.0030.05721.05
4.3.70.0070.04016.52
4.3.60.0130.03316.46
4.3.50.0030.04716.50
4.3.40.0070.05717.12
4.3.30.0070.04315.91
4.3.20.0100.02313.55
4.3.10.0070.04315.89
4.3.00.0100.04015.84

preferences:
41.07 ms | 400 KiB | 5 Q