3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attributes = array( 'autocomplete' => 'off', 'class' => 'email', 'id' => 'myform', 'value' => 'foo "fizz buzz" bar', ); echo implode( ' ', array_map( fn($k, $v) => sprintf( '%s="%s"', $k, htmlspecialchars( $v, ENT_QUOTES, 'UTF-8' ) ), array_keys($attributes), $attributes ) );

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.5.10.0120.00619.36
8.5.00.0110.01621.77
8.4.160.0050.00423.93
8.4.150.0010.00114.05
8.4.140.0110.01017.26
8.4.130.0130.00618.87
8.4.120.0110.00823.82
8.4.110.0050.00520.54
8.4.100.0110.01017.58
8.4.90.0100.01020.63
8.4.80.0040.00418.85
8.4.70.0060.00318.89
8.4.60.0120.01120.74
8.4.50.0150.00219.01
8.4.40.0060.01317.70
8.4.30.0150.00024.00
8.4.20.0100.01019.34
8.4.10.0060.00319.55
8.3.280.0120.00818.37
8.3.270.0120.01016.66
8.3.260.0100.00816.63
8.3.250.0090.01018.80
8.3.240.0130.00617.23
8.3.230.0130.00516.63
8.3.220.0070.00918.98
8.3.210.0100.01016.61
8.3.200.0040.00416.61
8.3.190.0090.00717.21
8.3.180.0130.00818.85
8.3.170.0120.00617.07
8.3.160.0040.01518.26
8.3.150.0180.00017.05
8.3.140.0030.00716.61
8.3.130.0000.00816.62
8.3.120.0260.01016.07
8.3.110.0190.00816.59
8.3.100.0200.00816.40
8.3.90.0290.00516.47
8.3.80.0280.00316.48
8.3.70.0200.01016.67
8.3.60.0250.00416.36
8.3.50.0210.00516.42
8.3.40.0120.00617.37
8.3.30.0060.00917.30
8.3.20.0150.00217.38
8.3.10.0150.00417.32
8.3.00.0070.00617.23
8.2.290.0100.00517.27
8.2.280.0100.00818.18
8.2.270.0080.00018.33
8.2.260.0030.01016.90
8.2.250.0030.00316.73
8.2.240.0210.00416.53
8.2.230.0190.00716.41
8.2.220.0180.00716.48
8.2.210.0200.00416.03
8.2.200.0220.00416.08
8.2.190.0190.00016.42
8.2.180.0160.00216.20
8.2.170.0170.00717.58
8.2.160.0210.00617.76
8.2.150.0230.00217.52
8.2.140.0190.00617.41
8.2.130.0190.00717.43
8.2.120.0220.00517.40
8.2.110.0220.00717.52
8.2.100.0170.00817.46
8.2.90.0160.01017.61
8.2.80.0240.00317.32
8.2.70.0250.00417.57
8.2.60.0250.00517.30
8.2.50.0260.00417.33
8.2.40.0250.00117.31
8.2.30.0200.00817.36
8.2.20.0250.00717.16
8.2.10.0210.00417.13
8.2.00.0180.00417.10
8.1.330.0100.00915.81
8.1.320.0050.00317.77
8.1.310.0050.00318.60
8.1.300.0130.00815.91
8.1.290.0140.00515.89
8.1.280.0130.00615.96
8.1.270.0160.01117.18
8.1.260.0160.00616.93
8.1.250.0180.00316.94
8.1.240.0140.00417.15
8.1.230.0140.00316.98
8.1.220.0230.00217.22
8.1.210.0140.00417.09
8.1.200.0130.00416.93
8.1.190.0150.00216.96
8.1.180.0140.00417.06
8.1.170.0110.00717.05
8.1.160.0200.00616.99
8.1.150.0230.00316.99
8.1.140.0250.00516.96
8.1.130.0210.00817.01
8.1.120.0190.00917.14
8.1.110.0180.00817.14
8.1.100.0240.00316.94
8.1.90.0210.00617.22
8.1.80.0170.00617.24
8.1.70.0180.00217.20
8.1.60.0230.00517.33
8.1.50.0180.00617.24
8.1.40.0230.00517.19
8.1.30.0210.00917.36
8.1.20.0210.00517.34
8.1.10.0180.00917.26
8.1.00.0250.00217.28

preferences:
37.86 ms | 403 KiB | 5 Q