3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); $test='number $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.0120.00316.50
8.3.50.0090.00616.50
8.3.40.0140.00018.89
8.3.30.0120.00318.72
8.3.20.0070.00020.39
8.3.10.0030.00621.73
8.3.00.0080.00021.96
8.2.180.0140.00418.42
8.2.170.0140.00322.96
8.2.160.0070.01018.94
8.2.150.0020.00524.18
8.2.140.0030.00524.66
8.2.130.0080.00021.02
8.2.120.0040.00426.35
8.2.110.0100.00722.03
8.2.100.0080.00417.91
8.2.90.0030.00617.90
8.2.80.0060.00317.97
8.2.70.0080.00417.50
8.2.60.0000.00817.93
8.2.50.0060.00318.10
8.2.40.0000.00720.59
8.2.30.0000.00821.04
8.2.20.0080.00017.96
8.2.10.0000.00818.00
8.2.00.0000.00718.12
8.1.280.0150.00025.92
8.1.270.0040.00422.14
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0080.00022.21
8.1.230.0080.00420.79
8.1.220.0000.00817.89
8.1.210.0030.00618.90
8.1.200.0030.00617.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0030.00618.38
8.1.160.0070.00019.01
8.1.150.0040.00420.72
8.1.140.0040.00419.57
8.1.130.0070.00018.94
8.1.120.0040.00417.53
8.1.110.0000.00717.45
8.1.100.0040.00417.47
8.1.90.0000.00817.52
8.1.80.0000.00717.39
8.1.70.0000.00717.37
8.1.60.0000.00817.46
8.1.50.0040.00417.42
8.1.40.0000.00717.54
8.1.30.0030.00517.64
8.1.20.0040.00417.63
8.1.10.0050.00317.55
8.1.00.0040.00417.33
8.0.300.0030.00519.89
8.0.290.0000.00716.75
8.0.280.0070.00018.32
8.0.270.0050.00317.26
8.0.260.0030.00316.73
8.0.250.0060.00016.98
8.0.240.0060.00316.84
8.0.230.0040.00416.94
8.0.220.0040.00416.82
8.0.210.0080.00016.91
8.0.200.0030.00316.97
8.0.190.0080.00016.92
8.0.180.0070.00016.86
8.0.170.0000.00716.91
8.0.160.0000.00716.73
8.0.150.0000.00716.80
8.0.140.0030.00316.79
8.0.130.0060.00013.40
8.0.120.0000.00716.77
8.0.110.0030.00316.93
8.0.100.0000.00716.77
8.0.90.0040.00416.89
8.0.80.0110.00516.81
8.0.70.0000.00716.74
8.0.60.0040.00416.79
8.0.50.0050.00316.93
8.0.30.0110.00717.01
8.0.20.0100.00917.41
8.0.10.0030.00617.08
8.0.00.0100.01016.72
7.4.330.0050.00015.55
7.4.320.0060.00016.59
7.4.300.0000.00616.55
7.4.290.0030.00316.40
7.4.280.0050.00316.51
7.4.270.0070.00016.64
7.4.260.0030.00716.56
7.4.250.0000.00716.47
7.4.240.0030.00516.53
7.4.230.0030.00516.44
7.4.220.0060.01916.45
7.4.210.0090.00816.56
7.4.200.0000.00716.62
7.4.160.0050.01216.61
7.4.150.0160.00617.40
7.4.140.0060.01317.86
7.4.130.0120.00616.48
7.4.120.0060.01416.46
7.4.110.0070.01016.44
7.4.100.0110.00716.50
7.4.90.0060.01316.35
7.4.80.0100.00619.39
7.4.70.0120.00916.53
7.4.60.0060.00916.38
7.4.50.0070.00716.27
7.4.40.0090.01316.56
7.4.30.0100.00616.48
7.4.00.0030.01014.79
7.3.330.0050.00012.89
7.3.320.0000.00513.04
7.3.310.0040.00416.04
7.3.300.0000.00616.22
7.3.290.0000.00716.04
7.3.280.0100.00616.20
7.3.270.0100.00717.40
7.3.260.0100.01016.41
7.3.250.0070.01116.31
7.3.240.0110.00616.26
7.3.230.0110.00716.48
7.3.210.0070.01016.45
7.3.200.0040.01416.30
7.3.190.0090.00916.48
7.3.180.0080.01316.27
7.3.170.0070.01016.32
7.3.160.0090.00616.24
7.3.10.0030.01016.37
7.3.00.0080.00816.45
7.2.330.0100.01316.40
7.2.320.0080.00816.64
7.2.310.0070.01016.55
7.2.300.0030.01316.50
7.2.290.0090.00916.31
7.2.130.0130.00716.49
7.2.120.0110.00716.49
7.2.110.0000.01416.46
7.2.100.0060.00316.18
7.2.90.0080.00316.81
7.2.80.0000.01216.63
7.2.70.0080.00316.33
7.2.60.0080.00616.77
7.2.50.0060.00516.92
7.2.40.0000.01216.58
7.2.30.0100.00016.91
7.2.20.0050.00516.54
7.2.10.0090.00916.77
7.2.00.0090.00316.95
7.1.250.0040.00715.26
7.1.200.0080.00615.66
7.1.70.0110.01016.85
7.1.60.0250.01734.77
7.1.50.0260.01534.72
7.1.40.0130.02234.50
7.1.30.0280.00734.20
7.1.20.0200.01834.78
7.1.10.0030.01316.36
7.1.00.0090.00616.54
7.0.200.0040.01516.76
7.0.190.0060.01516.50
7.0.180.0080.00816.14
7.0.170.0100.00716.36
7.0.160.0030.01216.26
7.0.150.0030.01216.13
7.0.140.0100.00616.22
7.0.130.0110.00916.30
7.0.120.0030.01716.64
7.0.110.0080.00816.16
7.0.100.0100.01016.21
7.0.90.0070.01316.20
7.0.80.0040.01416.27
7.0.70.0090.00916.29
7.0.60.0060.01215.86
7.0.50.0120.00616.26
7.0.40.0060.01216.69
7.0.30.0030.01516.52
7.0.20.0040.01616.32
7.0.10.0090.00616.33
7.0.00.0040.01716.46

preferences:
39.49 ms | 400 KiB | 5 Q