3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); $test='number %1$s'; $test=sprintf($test, T1); echo $test;

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.0130.00316.63
8.3.50.0000.01416.29
8.3.40.0120.00318.55
8.3.30.0090.00618.76
8.3.20.0080.00020.30
8.3.10.0080.00023.48
8.3.00.0000.00822.10
8.2.180.0100.00718.41
8.2.170.0100.00322.96
8.2.160.0100.00619.05
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00321.07
8.2.120.0070.00026.35
8.2.110.0000.00920.92
8.2.100.0090.00318.18
8.2.90.0000.00819.08
8.2.80.0080.00017.97
8.2.70.0030.00717.38
8.2.60.0000.00817.78
8.2.50.0030.00618.10
8.2.40.0040.00420.50
8.2.30.0020.00520.91
8.2.20.0060.00317.91
8.2.10.0040.00418.12
8.2.00.0080.00017.98
8.1.280.0220.00325.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0080.00419.21
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.35
8.1.180.0080.00018.10
8.1.170.0060.00320.42
8.1.160.0000.00719.03
8.1.150.0020.00520.65
8.1.140.0040.00419.59
8.1.130.0000.00718.89
8.1.120.0040.00417.39
8.1.110.0040.00417.47
8.1.100.0000.00717.50
8.1.90.0020.00517.35
8.1.80.0030.00317.37
8.1.70.0030.00317.49
8.1.60.0000.00817.55
8.1.50.0030.00617.59
8.1.40.0000.00817.47
8.1.30.0030.00517.60
8.1.20.0040.00417.63
8.1.10.0050.00317.41
8.1.00.0000.00717.32
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.32
8.0.270.0030.00317.25
8.0.260.0000.00716.82
8.0.250.0000.00716.98
8.0.240.0050.00516.97
8.0.230.0050.00216.92
8.0.220.0030.00316.91
8.0.210.0030.00316.80
8.0.200.0030.00317.01
8.0.190.0040.00416.97
8.0.180.0030.00516.80
8.0.170.0000.00716.80
8.0.160.0040.00416.88
8.0.150.0050.00316.79
8.0.140.0000.00716.74
8.0.130.0060.00313.33
8.0.120.0000.00816.74
8.0.110.0070.00016.85
8.0.100.0040.00416.73
8.0.90.0030.00516.85
8.0.80.0090.00916.90
8.0.70.0050.00216.89
8.0.60.0000.00816.67
8.0.50.0000.00716.87
8.0.30.0110.00917.09
8.0.20.0060.01117.40
8.0.10.0060.00316.95
8.0.00.0090.00916.64
7.4.330.0000.00515.55
7.4.320.0060.00016.52
7.4.300.0030.00316.55
7.4.290.0070.00016.41
7.4.280.0000.00816.64
7.4.270.0000.00716.50
7.4.260.0040.00416.58
7.4.250.0050.00316.36
7.4.240.0050.00316.59
7.4.230.0040.00416.49
7.4.220.0080.01116.60
7.4.210.0050.01016.59
7.4.200.0000.00716.34
7.4.160.0130.00216.48
7.4.150.0110.00717.40
7.4.140.0080.00817.86
7.4.130.0130.00516.66
7.4.120.0140.00816.54
7.4.110.0040.01316.54
7.4.100.0130.00416.48
7.4.90.0100.00716.44
7.4.80.0060.01419.39
7.4.70.0140.00616.56
7.4.60.0060.01616.51
7.4.50.0030.01216.41
7.4.40.0090.01216.57
7.4.30.0130.00316.49
7.4.00.0040.01114.70
7.3.330.0000.00612.94
7.3.320.0050.00012.94
7.3.310.0030.00316.29
7.3.300.0000.00716.10
7.3.290.0070.00016.18
7.3.280.0100.00716.19
7.3.270.0170.00017.40
7.3.260.0090.01116.25
7.3.250.0120.00616.19
7.3.240.0110.00616.30
7.3.230.0160.00016.57
7.3.210.0090.00616.19
7.3.200.0060.00916.61
7.3.190.0030.01316.19
7.3.180.0120.00916.43
7.3.170.0160.00316.43
7.3.160.0060.00916.32
7.3.10.0120.00616.39
7.3.00.0120.00316.49
7.2.330.0090.00916.40
7.2.320.0130.01016.46
7.2.310.0130.00316.68
7.2.300.0100.00616.31
7.2.290.0040.01216.41
7.2.130.0110.00916.47
7.2.120.0120.00616.71
7.2.110.0120.01016.83
7.2.100.0070.00916.58
7.2.90.0110.00716.62
7.2.80.0110.00616.58
7.2.70.0130.00716.89
7.2.60.0120.00216.76
7.2.50.0090.01316.83
7.2.40.0090.01016.19
7.2.30.0120.00916.54
7.2.20.0100.01016.60
7.2.10.0090.00816.68
7.2.00.0080.01217.56
7.1.250.0140.00215.61
7.1.200.0000.01115.73
7.1.100.0000.00817.98
7.1.70.0030.01717.22
7.1.60.0210.02234.99
7.1.50.0270.01634.94
7.1.40.0280.02134.39
7.1.30.0290.01434.50
7.1.20.0230.01034.57
7.1.10.0000.01616.54
7.1.00.0090.01616.63
7.0.200.0110.01116.62
7.0.190.0100.00816.64
7.0.180.0070.01016.15
7.0.170.0030.01316.19
7.0.160.0040.01516.11
7.0.150.0090.00916.11
7.0.140.0060.01216.51
7.0.130.0060.01816.36
7.0.120.0080.01216.47
7.0.110.0110.00816.04
7.0.100.0130.00916.21
7.0.90.0160.01116.17
7.0.80.0080.01316.46
7.0.70.0160.00316.14
7.0.60.0110.01116.01
7.0.50.0090.00916.40
7.0.40.0090.00916.52
7.0.30.0060.01416.39
7.0.20.0100.01116.48
7.0.10.0060.01716.40
7.0.00.0100.01216.34

preferences:
33.66 ms | 400 KiB | 5 Q