3v4l.org

run code in 300+ PHP versions simultaneously
<?php class sad {var $jsonReplaces = array("\\", "/", "\n", "\t", "\r", "\b", "\f", '"');} class sad2 {static $jsonReplaces = array("\\", "/", "\n", "\t", "\r", "\b", "\f", '"');}

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.00716.38
8.3.50.0150.00722.85
8.3.40.0060.01218.42
8.3.30.0100.00718.96
8.3.20.0040.00420.16
8.3.10.0040.00423.65
8.3.00.0030.00619.25
8.2.180.0080.00616.32
8.2.170.0090.00622.96
8.2.160.0100.01020.31
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00821.10
8.2.110.0060.00320.35
8.2.100.0000.01118.09
8.2.90.0070.00019.09
8.2.80.0040.00417.97
8.2.70.0040.00417.36
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0080.00019.69
8.2.30.0020.00517.98
8.2.20.0040.00417.48
8.2.10.0000.00717.81
8.2.00.0020.00517.48
8.1.280.0170.00325.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00622.14
8.1.230.0000.01119.03
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00416.88
8.1.190.0030.00917.00
8.1.180.0000.00818.10
8.1.170.0050.00518.50
8.1.160.0070.00021.98
8.1.150.0040.00418.67
8.1.140.0040.00417.27
8.1.130.0000.00817.67
8.1.120.0050.00317.38
8.1.110.0040.00417.31
8.1.100.0040.00417.21
8.1.90.0040.00417.38
8.1.80.0050.00217.31
8.1.70.0030.00317.25
8.1.60.0040.00417.41
8.1.50.0030.00517.30
8.1.40.0060.00317.36
8.1.30.0040.00417.55
8.1.20.0040.00417.43
8.1.10.0060.00317.41
8.1.00.0070.00017.29
8.0.300.0000.00718.77
8.0.290.0000.00816.58
8.0.280.0030.00318.30
8.0.270.0000.00717.12
8.0.260.0000.00617.02
8.0.250.0030.00316.69
8.0.240.0070.00016.77
8.0.230.0000.00716.63
8.0.220.0000.00616.79
8.0.210.0070.00016.73
8.0.200.0030.00316.79
8.0.190.0040.00416.82
8.0.180.0070.00016.66
8.0.170.0110.00016.75
8.0.160.0000.00716.63
8.0.150.0070.00016.73
8.0.140.0000.00716.60
8.0.130.0030.00313.17
8.0.120.0040.00416.71
8.0.110.0070.00016.70
8.0.100.0070.00016.76
8.0.90.0000.00716.79
8.0.80.0040.01116.72
8.0.70.0040.00416.69
8.0.60.0050.00216.74
8.0.50.0050.00216.71
8.0.30.0120.01217.01
8.0.20.0120.01117.40
8.0.10.0030.00316.77
8.0.00.0070.01016.71
7.4.330.0000.00515.00
7.4.320.0070.00016.44
7.4.300.0030.00316.38
7.4.290.0000.00716.46
7.4.280.0070.00016.36
7.4.270.0030.00316.43
7.4.260.0000.00716.37
7.4.250.0040.00416.34
7.4.240.0030.00516.44
7.4.230.0000.00716.28
7.4.220.0100.01016.46
7.4.210.0110.00416.49
7.4.200.0000.00716.36
7.4.160.0040.01616.23
7.4.150.0140.00417.40
7.4.140.0130.00817.86
7.4.130.0060.01016.34
7.4.120.0070.01016.24
7.4.110.0040.01416.29
7.4.100.0070.01116.09
7.4.90.0100.00716.23
7.4.80.0120.01319.39
7.4.70.0060.01216.32
7.4.60.0070.01316.21
7.4.50.0030.00516.22
7.4.40.0070.01016.14
7.4.30.0140.00316.35
7.4.00.0060.00914.77
7.3.330.0070.00013.17
7.3.320.0000.00513.02
7.3.310.0000.00716.21
7.3.300.0030.00316.03
7.3.290.0060.00916.21
7.3.280.0100.00816.19
7.3.270.0030.01317.40
7.3.260.0100.01016.11
7.3.250.0160.00216.28
7.3.240.0080.00816.41
7.3.230.0120.01516.39
7.3.210.0090.01216.39
7.3.200.0100.00616.11
7.3.190.0120.00616.47
7.3.180.0030.01216.16
7.3.170.0130.00516.41
7.3.160.0040.01216.13
7.3.10.0100.00416.24
7.3.00.0100.00416.26
7.2.330.0080.01116.32
7.2.320.0070.01116.22
7.2.310.0110.00516.43
7.2.300.0140.00316.34
7.2.290.0070.01016.52
7.2.130.0090.00316.34
7.2.120.0090.00916.29
7.2.110.0100.00816.58
7.2.100.0100.00216.29
7.2.90.0040.01016.57
7.2.80.0060.00616.31
7.2.70.0120.00516.37
7.2.60.0100.00616.78
7.2.50.0080.00516.57
7.2.40.0050.00816.51
7.2.30.0100.00416.33
7.2.20.0090.00316.59
7.2.10.0030.01116.48
7.2.00.0070.00917.42
7.1.250.0080.00515.22
7.1.200.0100.00315.74
7.1.100.0000.01117.89
7.1.70.0030.00617.01
7.1.60.0060.01619.40
7.1.50.0070.01416.89
7.1.00.0100.07022.45
7.0.200.0050.00216.73
7.0.140.0000.07322.13
7.0.60.0070.05319.87
7.0.50.0100.08317.97
7.0.40.0100.07020.18
7.0.30.0430.04020.28
7.0.20.0170.08020.18
7.0.10.0130.08020.27
7.0.00.0130.06720.16
5.6.280.0130.06321.09
5.6.210.0100.03720.62
5.6.200.0100.08018.18
5.6.190.0170.03020.48
5.6.180.0470.06320.34
5.6.170.0170.04020.49
5.6.160.0070.08020.46
5.6.150.0100.08318.16
5.6.140.0030.08018.18
5.6.130.0030.05318.18
5.6.120.0170.07320.93
5.6.110.0130.05721.01
5.6.100.0000.06021.13
5.6.90.0100.08020.96
5.6.80.0130.07320.39
5.5.350.0170.04020.44
5.5.340.0100.08717.96
5.5.330.0000.04720.21
5.5.320.0070.06720.20
5.5.310.0270.04720.30
5.5.300.0070.08017.92
5.5.290.0030.05317.93
5.5.280.0100.04020.79
5.5.270.0030.09020.86
5.5.260.0070.06020.72
5.5.250.0130.08020.54
5.5.240.0170.06720.04
5.4.450.0430.04719.46
5.4.440.0130.04019.42
5.4.430.0270.04019.40
5.4.420.0170.04719.54
5.4.410.0230.03719.26
5.4.400.0270.04318.84
5.4.390.0370.03719.13
5.4.380.0330.05318.78
5.4.370.0300.06718.76
5.4.360.0330.05718.73
5.4.350.0470.05318.47
5.4.340.0500.04718.78
5.4.320.0060.03612.50
5.4.310.0020.04212.49
5.4.300.0050.03712.49
5.4.290.0060.03812.50
5.4.280.0060.03512.39
5.4.270.0080.04212.39
5.4.260.0060.03712.39
5.4.250.0070.03612.39
5.4.240.0050.03612.39
5.4.230.0050.03912.38
5.4.220.0050.03812.38
5.4.210.0080.03212.38
5.4.200.0100.03812.38
5.4.190.0070.03612.38
5.4.180.0050.04012.38
5.4.170.0070.03612.39
5.4.160.0070.03612.39
5.4.150.0060.04612.38
5.4.140.0060.04312.06
5.4.130.0100.04412.05
5.4.120.0080.03912.01
5.4.110.0070.04012.00
5.4.100.0070.03412.01
5.4.90.0040.03912.01
5.4.80.0070.03612.00
5.4.70.0050.03612.00
5.4.60.0040.03612.01
5.4.50.0060.03412.00
5.4.40.0080.03811.99
5.4.30.0060.03711.99
5.4.20.0090.03211.98
5.4.10.0040.03711.99
5.4.00.0080.03411.48
5.3.290.0040.04112.80
5.3.280.0080.03812.71
5.3.270.0040.04512.73
5.3.260.0090.03612.72
5.3.250.0070.03712.72
5.3.240.0060.03812.72
5.3.230.0100.03612.71
5.3.220.0050.03912.68
5.3.210.0060.04712.68
5.3.200.0060.04712.68
5.3.190.0050.03912.68
5.3.180.0070.05212.67
5.3.170.0090.03812.67
5.3.160.0120.04612.67
5.3.150.0100.03512.67
5.3.140.0050.04112.66
5.3.130.0070.04412.66
5.3.120.0060.04212.66
5.3.110.0080.03712.65
5.3.100.0050.04012.12
5.3.90.0040.04012.10
5.3.80.0070.04312.09
5.3.70.0100.03512.09
5.3.60.0070.03512.07
5.3.50.0030.03812.02
5.3.40.0060.03712.02
5.3.30.0090.03211.98
5.3.20.0100.03411.75
5.3.10.0070.03311.73
5.3.00.0070.03511.71
5.2.170.0070.0289.21
5.2.160.0040.0299.21
5.2.150.0050.0309.21
5.2.140.0030.0329.21
5.2.130.0060.0289.17
5.2.120.0030.0329.17
5.2.110.0060.0279.17
5.2.100.0050.0279.17
5.2.90.0070.0269.17
5.2.80.0090.0269.16
5.2.70.0050.0319.16
5.2.60.0050.0319.13
5.2.50.0050.0319.09
5.2.40.0040.0309.07
5.2.30.0050.0329.04
5.2.20.0080.0309.03
5.2.10.0070.0288.94
5.2.00.0060.0308.79
5.1.60.0060.0228.08
5.1.50.0010.0288.07
5.1.40.0050.0318.06
5.1.30.0060.0278.41
5.1.20.0040.0278.43
5.1.10.0060.0248.16
5.1.00.0060.0238.16
5.0.50.0040.0206.64
5.0.40.0040.0186.50
5.0.30.0040.0306.31
5.0.20.0000.0226.27
5.0.10.0030.0206.25
5.0.00.0030.0316.24
4.4.90.0020.0164.78
4.4.80.0010.0194.76
4.4.70.0010.0164.76
4.4.60.0020.0164.75
4.4.50.0030.0154.77
4.4.40.0050.0234.71
4.4.30.0050.0184.76
4.4.20.0010.0204.84
4.4.10.0050.0164.84
4.4.00.0020.0264.75
4.3.110.0040.0194.67
4.3.100.0040.0194.67
4.3.90.0020.0154.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0040.0164.63
4.3.50.0020.0194.62
4.3.40.0010.0254.54
4.3.30.0040.0163.30
4.3.20.0030.0153.28
4.3.10.0010.0173.23
4.3.00.0070.01315.66

preferences:
36.74 ms | 401 KiB | 5 Q