3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hi = array('wtf'=>'wer"ewr'); var_dump(json_encode($hi)));

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)
5.4.350.0070.04812.02
5.4.340.0080.03912.01
5.4.320.0090.07112.50
5.4.310.0070.05212.49
5.4.300.0060.04512.50
5.4.290.0090.04512.49
5.4.280.0050.04412.39
5.4.270.0050.04112.39
5.4.260.0060.04212.39
5.4.250.0060.04212.39
5.4.240.0050.03712.39
5.4.230.0070.03712.38
5.4.220.0050.03812.38
5.4.210.0060.04012.38
5.4.200.0080.04712.38
5.4.190.0110.05712.38
5.4.180.0120.04612.38
5.4.170.0140.05012.39
5.4.160.0090.03712.38
5.4.150.0060.03912.38
5.4.140.0080.03912.07
5.4.130.0110.03712.05
5.4.120.0020.04012.02
5.4.110.0060.03612.01
5.4.100.0030.03912.01
5.4.90.0110.03812.01
5.4.80.0070.03512.01
5.4.70.0040.04012.01
5.4.60.0110.03212.01
5.4.50.0040.04012.01
5.4.40.0090.03211.99
5.4.30.0090.03311.99
5.4.20.0060.03511.99
5.4.10.0060.03512.00
5.4.00.0080.03711.49
5.3.290.0080.04112.80
5.3.280.0110.03712.71
5.3.270.0050.04712.72
5.3.260.0070.03812.72
5.3.250.0050.03812.72
5.3.240.0050.03812.71
5.3.230.0050.03812.71
5.3.220.0050.03712.68
5.3.210.0070.03912.68
5.3.200.0070.03512.68
5.3.190.0080.03612.67
5.3.180.0060.04012.67
5.3.170.0050.03712.67
5.3.160.0070.03612.67
5.3.150.0050.04012.67
5.3.140.0090.04512.66
5.3.130.0050.04212.66
5.3.120.0060.04112.66
5.3.110.0130.05312.66
5.3.100.0060.03912.12
5.3.90.0100.03712.09
5.3.80.0070.03912.08
5.3.70.0080.03812.07
5.3.60.0080.03412.06
5.3.50.0120.03912.00
5.3.40.0080.03612.00
5.3.30.0070.03811.95
5.3.20.0070.04211.72
5.3.10.0090.04811.70
5.3.00.0100.04711.68
5.2.170.0100.0399.18
5.2.160.0100.0499.18
5.2.150.0110.0369.18
5.2.140.0040.0379.18
5.2.130.0090.0249.14
5.2.120.0060.0269.14
5.2.110.0070.0279.14
5.2.100.0040.0309.14
5.2.90.0050.0299.14
5.2.80.0050.0309.14
5.2.70.0040.0319.14
5.2.60.0060.0359.09
5.2.50.0080.0319.06
5.2.40.0060.0319.04
5.2.30.0070.0309.01
5.2.20.0070.0309.00
5.2.10.0070.0298.92
5.2.00.0070.0348.78
5.1.60.0040.0338.07
5.1.50.0060.0318.07
5.1.40.0070.0318.05
5.1.30.0060.0358.40
5.1.20.0080.0338.41
5.1.10.0050.0358.15
5.1.00.0100.0328.14
5.0.50.0080.0236.62
5.0.40.0040.0276.48
5.0.30.0070.0376.29
5.0.20.0030.0256.27
5.0.10.0070.0226.24
5.0.00.0070.0336.23
4.4.90.0010.0234.78
4.4.80.0080.0174.75
4.4.70.0100.0184.75
4.4.60.0050.0194.76
4.4.50.0040.0214.77
4.4.40.0020.0284.70
4.4.30.0030.0194.76
4.4.20.0050.0184.85
4.4.10.0030.0194.85
4.4.00.0010.0364.76
4.3.110.0050.0184.67
4.3.100.0040.0194.67
4.3.90.0030.0204.63
4.3.80.0040.0274.58
4.3.70.0020.0174.63
4.3.60.0040.0154.63
4.3.50.0020.0194.63
4.3.40.0030.0254.53
4.3.30.0030.0163.29
4.3.20.0020.0173.26
4.3.10.0040.0163.21
4.3.00.0130.0206.71

preferences:
139.35 ms | 1398 KiB | 7 Q