3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test1() { echo "Test 1"; function test2() { echo "Test 2"; } } test2();

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.0070.00716.68
8.3.60.0060.00916.50
8.3.50.0140.00721.09
8.3.40.0000.01419.02
8.3.30.0040.01118.72
8.3.20.0040.00420.24
8.3.10.0040.00423.61
8.3.00.0080.00019.68
8.2.190.0080.00816.74
8.2.180.0120.00916.63
8.2.170.0070.00722.96
8.2.160.0120.00320.57
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0080.00017.38
8.2.110.0060.00321.12
8.2.100.0060.00617.63
8.2.90.0040.00419.27
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0040.00419.40
8.2.30.0000.01019.77
8.2.20.0030.00517.72
8.2.10.0040.00417.86
8.2.00.0050.00217.98
8.1.280.0160.00325.92
8.1.270.0090.00920.11
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0030.00722.18
8.1.230.0060.00617.42
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.13
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0000.00818.38
8.1.160.0070.00021.98
8.1.150.0040.00418.73
8.1.140.0030.00617.25
8.1.130.0000.00717.44
8.1.120.0040.00417.38
8.1.110.0030.00617.30
8.1.100.0070.00017.34
8.1.90.0040.00417.32
8.1.80.0030.00517.30
8.1.70.0030.00317.39
8.1.60.0030.00617.46
8.1.50.0000.00717.51
8.1.40.0030.00617.43
8.1.30.0030.00517.63
8.1.20.0040.00417.48
8.1.10.0040.00417.52
8.1.00.0000.00717.33
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00718.38
8.0.270.0000.00817.15
8.0.260.0000.00917.19
8.0.250.0040.00416.95
8.0.240.0000.00716.96
8.0.230.0040.00416.94
8.0.220.0000.00716.90
8.0.210.0000.00716.86
8.0.200.0030.00316.83
8.0.190.0030.00616.94
8.0.180.0080.00016.79
8.0.170.0000.00716.84
8.0.160.0000.00716.86
8.0.150.0070.00016.86
8.0.140.0070.00016.81
8.0.130.0000.00613.30
8.0.120.0040.00416.91
8.0.110.0040.00416.86
8.0.100.0070.00016.93
8.0.90.0040.00416.80
8.0.80.0110.01116.84
8.0.70.0050.00216.95
8.0.60.0050.00216.84
8.0.50.0000.00816.79
8.0.30.0120.00616.98
8.0.20.0100.00917.40
8.0.10.0040.00416.95
8.0.00.0050.01516.73
7.4.330.0030.00315.08
7.4.320.0000.00716.36
7.4.300.0030.00316.43
7.4.290.0030.00616.44
7.4.280.0040.00416.52
7.4.270.0050.00216.34
7.4.260.0030.00516.53
7.4.250.0040.00416.48
7.4.240.0050.00216.45
7.4.230.0070.00016.41
7.4.220.0140.01216.47
7.4.210.0110.00316.52
7.4.200.0070.00016.63
7.4.160.0090.00916.66
7.4.150.0070.01517.40
7.4.140.0100.01117.86
7.4.130.0060.01116.49
7.4.120.0090.01216.43
7.4.110.0070.01416.42
7.4.100.0150.00716.36
7.4.90.0040.01216.56
7.4.80.0060.01019.39
7.4.70.0170.00816.66
7.4.60.0060.00916.28
7.4.50.0080.00016.44
7.4.40.0100.00716.36
7.4.30.0110.00616.59
7.4.00.0070.01014.69
7.3.330.0030.00313.16
7.3.320.0020.00213.22
7.3.310.0030.00316.26
7.3.300.0030.00316.16
7.3.290.0110.00616.25
7.3.280.0100.00716.29
7.3.270.0060.01217.40
7.3.260.0030.02016.28
7.3.250.0080.01116.28
7.3.240.0030.01316.20
7.3.230.0070.01016.39
7.3.210.0080.00816.24
7.3.200.0130.00316.24
7.3.190.0140.00316.45
7.3.180.0030.01216.22
7.3.170.0130.00316.50
7.3.160.0070.01016.41
7.2.330.0030.01416.28
7.2.320.0140.00516.61
7.2.310.0030.01216.37
7.2.300.0060.01616.57
7.2.290.0110.00716.50
7.2.80.0060.00616.63
7.2.60.0030.00916.62
7.2.00.0060.00919.18
7.1.200.0040.00815.37
7.1.100.0060.00617.93
7.1.70.0030.00316.54
7.1.60.0060.01219.27
7.1.50.0060.01616.86
7.1.00.0100.07022.51
7.0.200.0360.00714.42
7.0.60.0170.07019.84
7.0.50.0130.07717.88
7.0.40.0070.04320.32
7.0.30.0430.05320.12
7.0.20.0200.05020.43
7.0.10.0200.09020.24
7.0.00.0070.04020.22
5.6.280.0100.06321.03
5.6.210.0070.08320.52
5.6.200.0130.07318.16
5.6.190.0170.07720.55
5.6.180.0270.05020.61
5.6.170.0130.05720.43
5.6.160.0070.04020.55
5.6.150.0070.07318.23
5.6.140.0130.07018.27
5.6.130.0130.07718.28
5.6.120.0100.06721.14
5.6.110.0070.04021.02
5.6.100.0030.08020.96
5.6.90.0100.05321.02
5.6.80.0070.07020.40
5.6.70.4600.03720.38
5.5.350.0070.07020.47
5.5.340.0130.06717.98
5.5.330.0030.05720.26
5.5.320.0300.05320.42
5.5.310.0330.07020.27
5.5.300.0070.07317.94
5.5.290.0070.08317.95
5.5.280.0130.06320.98
5.5.270.0070.07020.96
5.5.260.0100.08020.80
5.5.250.0100.08020.66
5.5.240.0300.07020.26
5.4.450.0730.08719.31
5.4.440.0700.05719.60
5.4.430.0770.05019.16
5.4.420.0730.06019.38
5.4.410.0770.05319.33
5.4.400.0700.05719.26
5.4.390.0670.05318.99
5.4.380.0970.06319.28
5.4.370.0800.07719.14
5.4.360.0670.06719.24
5.4.350.0330.05019.24
5.4.340.0130.07318.98
5.4.320.0170.05019.11
5.4.310.0200.05019.13
5.4.300.0630.05319.28
5.4.290.0700.05718.84
5.4.280.0700.06719.14
5.4.270.0670.06018.84
5.4.260.0900.04719.12
5.4.250.0700.06019.14
5.4.240.0700.05719.28
5.4.230.0770.05019.29
5.4.220.0800.05718.96
5.4.210.0700.05319.11
5.4.200.0670.06319.25
5.4.190.0800.05719.13
5.4.180.0570.06019.26
5.4.170.0800.04719.28
5.4.160.0730.06719.24
5.4.150.0630.05019.04
5.4.140.0730.04016.41
5.4.130.0670.04716.77
5.4.120.0800.06016.46
5.4.110.0500.06716.63
5.4.100.0600.04716.57
5.4.90.0670.05016.57
5.4.80.0700.05316.48
5.4.70.0230.05316.25
5.4.60.0300.07016.33
5.4.50.0000.07716.25
5.4.40.0070.03016.38
5.4.30.0030.04716.53
5.4.20.0300.05716.18

preferences:
48.84 ms | 401 KiB | 5 Q