3v4l.org

run code in 300+ PHP versions simultaneously
<?php function MyFunc($content) { echo DoThis(); // The Nested Functions function DoThis() { echo 'Yeah!'; } function DoThat() { echo 'Nah!'; } } // The Main Script $string = 'Yes yes'; echo MyFunc($string);

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.3.70.0120.00318.31
8.3.60.0090.00916.50
8.3.50.0070.01121.99
8.3.40.0120.00318.67
8.3.30.0100.00318.53
8.3.20.0050.00320.27
8.3.10.0040.00423.66
8.3.00.0030.00619.79
8.2.190.0110.01116.63
8.2.180.0070.01116.88
8.2.170.0170.00322.96
8.2.160.0140.00020.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00320.99
8.2.120.0050.00326.35
8.2.110.0100.00020.53
8.2.100.0040.00817.79
8.2.90.0000.00818.16
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0080.00317.80
8.2.50.0080.00018.07
8.2.40.0030.00621.19
8.2.30.0040.00420.48
8.2.20.0050.00317.60
8.2.10.0040.00417.92
8.2.00.0070.00018.00
8.1.280.0070.00725.92
8.1.270.0080.00018.83
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00022.19
8.1.230.0070.00420.91
8.1.220.0000.00917.76
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0060.00317.58
8.1.180.0030.00518.10
8.1.170.0030.00618.59
8.1.160.0040.00420.60
8.1.150.0050.00218.86
8.1.140.0000.00819.43
8.1.130.0070.00017.63
8.1.120.0070.00017.29
8.1.110.0040.00417.29
8.1.100.0040.00417.24
8.1.90.0030.00517.29
8.1.80.0040.00417.38
8.1.70.0040.00417.33
8.1.60.0070.00417.48
8.1.50.0060.00317.55
8.1.40.0000.00817.48
8.1.30.0080.00017.58
8.1.20.0000.00717.62
8.1.10.0040.00417.54
8.1.00.0000.00717.38
8.0.300.0050.00219.95
8.0.290.0000.00716.63
8.0.280.0000.00718.46
8.0.270.0000.00717.15
8.0.260.0000.00617.24
8.0.250.0030.00316.94
8.0.240.0000.00716.95
8.0.230.0000.00716.95
8.0.220.0000.00716.79
8.0.210.0030.00316.83
8.0.200.0060.00017.00
8.0.190.0070.00016.91
8.0.180.0050.00316.75
8.0.170.0070.00016.86
8.0.160.0000.00816.94
8.0.150.0040.00416.80
8.0.140.0070.00016.90
8.0.130.0000.00513.27
8.0.120.0040.00416.90
8.0.110.0040.00416.93
8.0.100.0020.00516.78
8.0.90.0000.00716.85
8.0.80.0130.00316.90
8.0.70.0000.00716.74
8.0.60.0000.00716.79
8.0.50.0040.00416.84
8.0.30.0110.00617.07
8.0.20.0130.00617.40
8.0.10.0000.00716.95
8.0.00.0090.00816.68
7.4.330.0030.00316.67
7.4.320.0000.00616.55
7.4.300.0030.00316.66
7.4.290.0040.00416.59
7.4.280.0040.00416.59
7.4.270.0070.00016.43
7.4.260.0040.00416.45
7.4.250.0030.00316.45
7.4.240.0000.00716.52
7.4.230.0070.00016.48
7.4.220.0060.01316.54
7.4.210.0120.00316.64
7.4.200.0030.00316.58
7.4.160.0150.00016.57
7.4.150.0040.01417.40
7.4.140.0160.00317.86
7.4.130.0060.01816.55
7.4.120.0070.01416.49
7.4.110.0130.00616.47
7.4.100.0120.00916.63
7.4.90.0160.00716.58
7.4.80.0070.01119.39
7.4.70.0090.00616.51
7.4.60.0110.00716.60
7.4.50.0030.01216.38
7.4.40.0080.01316.52
7.4.30.0190.00316.49
7.4.00.0000.01614.89
7.3.330.0060.00013.26
7.3.320.0000.00513.38
7.3.310.0030.00316.16
7.3.300.0030.00316.32
7.3.290.0090.00916.29
7.3.280.0100.00416.30
7.3.270.0170.00017.40
7.3.260.0180.00016.23
7.3.250.0100.01116.39
7.3.240.0110.00516.25
7.3.230.0040.01416.54
7.3.210.0110.00716.29
7.3.200.0080.00816.39
7.3.190.0120.00316.43
7.3.180.0120.00616.48
7.3.170.0080.00816.36
7.3.160.0000.01516.44
7.2.330.0160.00016.52
7.2.320.0100.00716.66
7.2.310.0090.00616.56
7.2.300.0060.00916.49
7.2.290.0070.01016.50
7.2.60.0120.00316.73
7.2.00.0000.01519.14
7.1.200.0000.01115.79
7.1.100.0070.00717.86
7.1.70.0000.01217.10
7.1.60.0130.01019.50
7.1.50.0120.00916.83
7.1.00.0030.07722.36
7.0.200.0050.00516.73
7.0.60.0130.07719.96
7.0.50.0100.07717.94
7.0.40.0170.06320.11
7.0.30.0400.07020.12
7.0.20.0270.07720.10
7.0.10.0030.08020.09
7.0.00.0000.04720.27
5.6.280.0070.02721.13
5.6.210.0030.04320.48
5.6.200.0070.08718.12
5.6.190.0030.04320.42
5.6.180.0400.05020.39
5.6.170.0270.06320.51
5.6.160.0100.04320.47
5.6.150.0100.07718.21
5.6.140.0030.04018.19
5.6.130.0030.04018.27
5.6.120.0070.03721.14
5.6.110.0100.03721.05
5.6.100.0030.08021.08
5.6.90.0000.09321.11
5.6.80.0100.07020.39
5.5.350.0100.06720.41
5.5.340.0070.08018.09
5.5.330.0070.05020.27
5.5.320.0100.08020.31
5.5.310.0230.05020.41
5.5.300.0030.04318.08
5.5.290.0070.08318.08
5.5.280.0100.08020.99
5.5.270.0130.07320.89
5.5.260.0070.08320.66
5.5.250.0070.06320.62
5.5.240.0230.02720.27

preferences:
32.51 ms | 401 KiB | 5 Q