3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 5; $location = 'tree'; $format = 'There are %d monkeys in the %s'; echo sprintf($format, $num, $location); ?>

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.60.0070.01416.50
8.3.50.0090.01121.92
8.3.40.0200.00318.53
8.3.30.0070.00718.42
8.3.20.0080.00020.21
8.3.10.0120.00623.52
8.3.00.0090.00919.78
8.2.180.0100.01016.38
8.2.170.0070.00722.96
8.2.160.0110.00720.47
8.2.150.0050.00324.18
8.2.140.0070.01024.66
8.2.130.0000.00821.00
8.2.120.0040.01526.35
8.2.110.0070.00320.98
8.2.100.0060.00618.04
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0030.00518.03
8.2.50.0040.00418.07
8.2.40.0000.00822.38
8.2.30.0040.00420.52
8.2.20.0050.00317.70
8.2.10.0040.00417.90
8.2.00.0050.00318.12
8.1.280.0160.00025.92
8.1.270.0040.00420.28
8.1.260.0120.00328.09
8.1.250.0050.00328.09
8.1.240.0030.00723.91
8.1.230.0050.00517.77
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0060.00317.23
8.1.190.0080.00017.13
8.1.180.0090.00018.10
8.1.170.0000.00818.52
8.1.160.0050.00220.69
8.1.150.0030.00518.86
8.1.140.0080.00019.38
8.1.130.0000.00717.63
8.1.120.0070.00017.36
8.1.110.0040.00317.38
8.1.100.0000.00717.24
8.1.90.0040.00417.42
8.1.80.0040.00417.31
8.1.70.0040.00417.32
8.1.60.0000.00917.39
8.1.50.0040.00417.45
8.1.40.0030.00617.33
8.1.30.0060.00317.61
8.1.20.0000.00717.57
8.1.10.0000.00817.36
8.1.00.0070.00017.44
8.0.300.0000.00918.77
8.0.290.0000.00716.63
8.0.280.0000.00718.28
8.0.270.0000.00717.18
8.0.260.0030.00317.12
8.0.250.0020.00516.95
8.0.240.0040.00416.84
8.0.230.0070.00316.88
8.0.220.0030.00316.69
8.0.210.0050.00316.86
8.0.200.0030.00316.87
8.0.190.0000.00716.86
8.0.180.0040.00416.75
8.0.170.0080.00016.82
8.0.160.0000.00716.88
8.0.150.0050.00316.82
8.0.140.0040.00416.72
8.0.130.0000.00513.29
8.0.120.0060.00316.81
8.0.110.0000.00716.85
8.0.100.0000.00716.87
8.0.90.0030.00516.72
8.0.80.0080.00816.77
8.0.70.0070.00016.82
8.0.60.0000.00716.87
8.0.50.0030.00516.83
8.0.30.0100.01117.13
8.0.20.0110.00917.40
8.0.10.0040.00416.83
8.0.00.0090.01016.59
7.4.330.0020.00216.79
7.4.320.0030.00316.55
7.4.300.0070.00016.45
7.4.290.0000.00716.54
7.4.280.0000.00916.43
7.4.270.0030.00316.50
7.4.260.0060.00316.40
7.4.250.0030.00316.50
7.4.240.0020.00516.48
7.4.230.0070.00016.43
7.4.220.0100.01016.48
7.4.210.0130.00716.60
7.4.200.0070.00016.51
7.4.160.0070.00716.39
7.4.150.0070.01717.40
7.4.140.0110.00817.86
7.4.130.0040.01416.47
7.4.120.0090.00916.43
7.4.110.0180.00616.46
7.4.100.0110.00716.49
7.4.90.0060.01016.34
7.4.80.0140.00319.39
7.4.70.0070.01016.52
7.4.60.0030.01316.41
7.4.50.0030.01016.46
7.4.40.0030.01316.41
7.4.30.0030.01416.57
7.4.00.0120.00314.89
7.3.330.0030.00312.89
7.3.320.0000.00513.06
7.3.310.0030.00315.93
7.3.300.0000.00616.09
7.3.290.0090.01016.16
7.3.280.0100.00816.13
7.3.270.0110.00617.40
7.3.260.0140.00516.28
7.3.240.0090.01016.17
7.3.230.0070.01616.39
7.3.210.0140.00716.43
7.3.200.0060.00916.09
7.3.190.0090.00616.35
7.3.180.0040.01116.26
7.3.170.0100.01016.57
7.3.160.0030.02016.21
7.3.120.0040.01414.64
7.3.110.0100.00714.73
7.3.100.0090.00614.50
7.3.90.0100.00714.43
7.3.80.0090.00614.76
7.3.70.0000.01414.41
7.3.60.0030.01014.77
7.3.50.0040.00714.39
7.3.40.0070.00714.35
7.3.30.0040.00414.57
7.3.20.0030.00616.63
7.3.10.0070.00916.41
7.3.00.0100.00416.04
7.2.330.0000.01616.31
7.2.320.0120.00616.44
7.2.310.0130.01016.55
7.2.300.0060.01216.66
7.2.290.0120.00616.59
7.2.250.0120.00615.06
7.2.240.0060.01314.75
7.2.230.0070.00714.67
7.2.220.0060.00614.65
7.2.210.0070.01014.70
7.2.200.0100.00714.89
7.2.190.0140.00014.69
7.2.180.0070.00714.60
7.2.170.0030.00614.74
7.2.130.0150.00416.00
7.2.120.0130.00316.26
7.2.110.0100.00716.33
7.2.100.0060.00616.24
7.2.90.0130.00316.22
7.2.80.0070.00516.68
7.2.70.0060.01316.31
7.2.60.0120.00216.62
7.2.50.0090.01216.61
7.2.40.2390.00817.13
7.2.30.0920.00816.90
7.2.20.0920.01117.39
7.2.10.0090.00917.15
7.2.00.0130.01017.86
7.1.330.0090.00615.25
7.1.320.0040.01115.82
7.1.310.0000.01215.45
7.1.300.0060.00915.54
7.1.290.0060.00315.83
7.1.280.0140.00015.44
7.1.270.0100.00315.73
7.1.260.0000.01215.35
7.1.250.0140.00715.48
7.1.200.0230.00615.86
7.1.160.2570.01016.98
7.1.150.1780.00816.50
7.1.140.2710.00916.69
7.1.130.0100.00616.76
7.1.120.0090.01016.70
7.1.110.0130.00816.26
7.1.100.0220.00816.74
7.1.90.0090.00915.94
7.1.80.2260.00716.11
7.1.70.0040.00816.12
7.1.60.0150.01226.21
7.1.50.1900.01533.88
7.1.40.0290.01432.25
7.1.30.0260.01132.41
7.1.20.1210.01532.80
7.1.10.1150.00814.80
7.1.00.0480.04118.56
7.0.290.2480.00516.49
7.0.270.2150.00716.46
7.0.260.2100.00916.56
7.0.250.0120.00915.63
7.0.240.2090.01115.91
7.0.230.0210.00715.81
7.0.220.0150.00615.84
7.0.210.0140.01014.55
7.0.200.0940.00415.89
7.0.190.0130.01614.58
7.0.180.1530.01014.23
7.0.170.1370.00814.38
7.0.160.0150.00814.38
7.0.150.0710.01214.26
7.0.140.0170.00814.37
7.0.130.0090.00914.75
7.0.120.0590.01314.50
7.0.110.1190.01214.62
7.0.100.0570.00814.28
7.0.90.0560.01014.29
7.0.80.0920.01114.48
7.0.70.0560.00514.28
7.0.60.0450.04217.09
7.0.50.0250.02416.13
7.0.40.0310.04817.42
7.0.30.0430.02117.40
7.0.20.0530.04217.42
7.0.10.0880.02217.30
7.0.00.0480.02617.23
5.6.300.0130.05920.88
5.6.290.0160.06220.80
5.6.280.0120.05220.76
5.6.270.0180.05320.92
5.6.260.0180.05920.85
5.6.250.0240.04720.72
5.6.240.0210.06220.72
5.6.230.0190.08020.76
5.6.220.0180.05220.82
5.6.210.0140.07620.74
5.6.200.0140.06119.45
5.6.190.0050.06620.77
5.6.180.0240.06520.71
5.6.170.0230.06720.68
5.6.160.0160.06520.63
5.6.150.0070.05919.53
5.6.140.0090.06819.46
5.6.130.0140.05419.40
5.6.120.0180.06720.92
5.6.110.0170.06920.95
5.6.100.0120.06920.84
5.6.90.0130.07121.00
5.6.80.0120.04720.25
5.6.70.0170.06620.25
5.6.60.0140.06220.08
5.6.50.0130.05820.19
5.6.40.0200.04920.07
5.6.30.0120.05520.26
5.6.20.0140.07120.03
5.6.10.0120.05520.20
5.6.00.0200.04620.21
5.5.380.0090.06017.42
5.5.370.0230.07717.56
5.5.360.0160.05717.41
5.5.350.0200.06518.89
5.5.340.0110.06217.89
5.5.330.0150.06619.15
5.5.320.0220.05119.06
5.5.310.0160.04619.07
5.5.300.0140.06317.88
5.5.290.0100.07017.87
5.5.280.0070.05119.37
5.5.270.0150.05519.21
5.5.260.0100.06519.32
5.5.250.0150.05819.19
5.5.240.0210.06118.71
5.5.230.0180.07017.34
5.5.220.0100.06117.41
5.5.210.0110.05417.30
5.5.200.0150.05217.21
5.5.190.0190.06517.13
5.5.180.0140.05317.29
5.5.160.0080.05717.31
5.5.150.0130.06717.20
5.5.140.0210.05417.09
5.5.130.0140.06817.23
5.5.120.0140.07017.25
5.5.110.0190.04917.04
5.5.100.0130.05217.03
5.5.90.0130.05217.30
5.5.80.0100.05417.21
5.5.70.0160.06716.95
5.5.60.0150.06217.02
5.5.50.0140.05217.26
5.5.40.0090.06617.15
5.5.30.0110.05417.28
5.5.20.0140.05417.20
5.5.10.0150.05317.14
5.5.00.0170.05316.93

preferences:
45.23 ms | 401 KiB | 5 Q