3v4l.org

run code in 300+ PHP versions simultaneously
<pre><?php $incoming_usernames = array(); $username = 'Bob "Dillan'; # array_push($incoming_usernames["incoming_friendship_request"], $username); $incoming_usernames['incoming_friendship_request'] = $username; $array_string = mysql_escape_string(serialize($incoming_usernames)); var_dump($array_string); ?> </pre>

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.0090.01218.15
8.3.50.0120.00721.08
8.3.40.0150.00019.09
8.3.30.0030.01020.35
8.3.20.0040.00420.20
8.3.10.0000.00821.10
8.3.00.0050.00322.25
8.2.180.0210.00416.63
8.2.170.0120.00322.96
8.2.160.0070.00722.31
8.2.150.0030.00524.18
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00420.69
8.2.110.0070.00319.34
8.2.100.0080.00317.97
8.2.90.0000.00919.76
8.2.80.0030.00617.75
8.2.70.0030.00517.49
8.2.60.0060.00318.05
8.2.50.0080.00018.07
8.2.40.0030.00619.88
8.2.30.0000.00717.93
8.2.20.0000.00817.72
8.2.10.0000.00817.89
8.2.00.0040.00717.63
8.1.280.0070.01125.92
8.1.270.0080.00023.99
8.1.260.0050.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00322.71
8.1.230.0110.00021.03
8.1.220.0080.00017.74
8.1.210.0000.00818.84
8.1.200.0030.00717.35
8.1.190.0090.00017.23
8.1.180.0040.00422.12
8.1.170.0000.00918.79
8.1.160.0050.00318.84
8.1.150.0060.00318.65
8.1.140.0080.00017.46
8.1.130.0030.00317.83
8.1.120.0030.00717.33
8.1.110.0030.00617.46
8.1.100.0000.00817.38
8.1.90.0000.00717.43
8.1.80.0000.00917.39
8.1.70.0050.00217.39
8.1.60.0040.00417.46
8.1.50.0000.00717.55
8.1.40.0040.00417.56
8.1.30.0080.00017.62
8.1.20.0030.00617.65
8.1.10.0040.00417.63
8.1.00.0030.00717.49
8.0.300.0040.00419.83
8.0.290.0040.00416.75
8.0.280.0050.00218.50
8.0.270.0030.00317.26
8.0.260.0000.00616.95
8.0.250.0040.00417.02
8.0.240.0000.00817.02
8.0.230.0090.00016.93
8.0.220.0030.00316.95
8.0.210.0000.00716.84
8.0.200.0050.00316.97
8.0.190.0030.00316.95
8.0.180.0000.00716.98
8.0.170.0040.00416.93
8.0.160.0000.00716.78
8.0.150.0040.00416.84
8.0.140.0040.00416.84
8.0.130.0060.00013.38
8.0.120.0030.00516.86
8.0.110.0000.00716.91
8.0.100.0000.00716.96
8.0.90.0070.00016.82
8.0.80.0130.00316.87
8.0.70.0040.00416.90
8.0.60.0050.00216.92
8.0.50.0000.00716.79
8.0.30.0080.01117.04
8.0.20.0100.01017.40
8.0.10.0000.00717.02
8.0.00.0080.01216.96
7.4.330.0000.00516.70
7.4.320.0030.00316.56
7.4.300.0000.00716.52
7.4.290.0030.00316.44
7.4.280.0030.00316.61
7.4.270.0000.00716.55
7.4.260.0000.00513.25
7.4.250.0080.00016.42
7.4.240.0030.00416.49
7.4.230.0040.00416.71
7.4.220.0130.00716.64
7.4.210.0070.00716.60
7.4.200.0030.00316.32
7.4.190.0000.00716.76
7.4.160.0150.00016.66
7.4.150.0210.00417.40
7.4.140.0110.00717.86
7.4.130.0110.00916.53
7.4.120.0070.01116.58
7.4.110.0090.01216.57
7.4.100.0060.01016.45
7.4.90.0090.00916.40
7.4.80.0100.00719.39
7.4.70.0060.01216.36
7.4.60.0030.01316.57
7.4.50.0000.00516.28
7.4.40.0070.00722.77
7.4.30.0110.01116.45
7.4.00.0060.00915.14
7.3.330.0030.00313.21
7.3.320.0030.00313.10
7.3.310.0070.00016.20
7.3.300.0030.00316.38
7.3.290.0070.01016.35
7.3.280.0090.01016.44
7.3.270.0120.00617.40
7.3.260.0070.01618.24
7.3.250.0080.00816.39
7.3.240.0090.01316.52
7.3.230.0110.00716.42
7.3.210.0000.01616.25
7.3.200.0030.02019.39
7.3.190.0160.00316.55
7.3.180.0030.01816.29
7.3.170.0070.01016.56
7.3.160.0100.00716.41
7.3.120.0070.00714.75
7.3.00.0070.00716.62
7.2.330.0110.00816.51
7.2.320.0000.02116.50
7.2.310.0110.01116.64
7.2.300.0070.01016.44
7.2.290.0090.01216.45
7.2.130.0040.01116.89
7.2.120.0000.01617.01
7.2.110.0120.00616.73
7.2.100.0150.00016.79
7.2.90.0070.01116.95
7.2.80.0000.01417.03
7.2.70.0090.00316.69
7.2.60.0040.01216.83
7.2.50.0040.01416.94
7.2.40.0060.00916.91
7.2.30.0070.00716.94
7.2.20.0070.01016.86
7.2.10.0130.00316.85
7.2.00.0020.00917.93
7.1.250.0000.01315.56
7.1.240.0050.00515.84
7.1.230.0060.00915.68
7.1.220.0060.00915.77
7.1.210.0040.00815.49
7.1.200.0080.00515.92
7.1.190.0030.01315.82
7.1.180.0110.00415.57
7.1.170.0080.00415.78
7.1.160.0070.00415.90
7.1.150.0000.01115.79
7.1.140.0130.00015.84
7.1.130.0000.01315.80
7.1.120.0080.00415.80
7.1.110.0040.01115.81
7.1.100.0000.01016.74
7.1.90.0060.00315.77
7.1.80.0060.00915.78
7.1.70.0040.00416.30
7.1.60.0050.01217.35
7.1.50.0040.01116.26
7.1.40.0090.00315.55
7.1.30.0030.00715.51
7.1.20.0040.01115.82
7.1.10.0030.00615.79
7.1.00.0040.03618.84
7.0.330.0060.00615.00
7.0.320.0050.00515.08
7.0.310.0050.00515.43
7.0.300.0040.00715.38
7.0.290.0070.00415.39
7.0.280.0000.01315.23
7.0.270.0070.00715.30
7.0.260.0100.00315.04
7.0.250.0060.00915.19
7.0.240.0030.01015.47
7.0.230.0090.00315.36
7.0.220.0030.01015.41
7.0.210.0120.00315.36
7.0.200.0020.00615.96
7.0.190.0060.00615.21
7.0.180.0030.00715.28
7.0.170.0060.00615.27
7.0.160.0060.00615.20
7.0.150.0130.00015.41
7.0.140.0030.04218.67
7.0.130.0110.00415.24
7.0.120.0030.01015.46
7.0.110.0060.00315.36
7.0.100.0060.02317.54
7.0.90.0100.03017.70
7.0.80.0110.01817.55
7.0.70.0050.02417.67
7.0.60.0060.02217.53
7.0.50.0020.02717.83
7.0.40.0080.03316.85
7.0.30.0050.04716.79
7.0.20.0090.04316.77
7.0.10.0090.04016.72
7.0.00.0080.04216.65
5.6.380.0150.00014.16
5.6.370.0070.00314.72
5.6.360.0070.00714.16
5.6.350.0040.01214.10
5.6.340.0070.00714.29
5.6.330.0070.00714.49
5.6.320.0070.00714.25
5.6.310.0040.01114.41
5.6.300.0030.01014.47
5.6.290.0030.01014.33
5.6.280.0050.03817.59
5.6.270.0030.01214.34
5.6.260.0030.01414.38
5.6.250.0120.03117.49
5.6.240.0030.02617.36
5.6.230.0050.02517.27
5.6.220.0050.02117.46
5.6.210.0020.03117.46
5.6.200.0080.02217.81
5.6.190.0070.03017.45
5.6.180.0070.02817.58
5.6.170.0030.04617.61
5.6.160.0100.03817.64
5.6.150.0150.03717.69
5.6.140.0060.04417.77
5.6.130.0050.04817.64
5.6.120.0050.04517.58
5.6.110.0100.03317.67
5.6.100.0100.04517.60
5.6.90.0100.02017.53
5.6.80.0050.04517.27
5.6.70.0070.03917.26
5.6.60.0080.03917.20
5.6.50.0130.03817.31
5.6.40.0050.05217.26
5.6.30.0110.03617.35
5.6.20.0080.04317.49
5.6.10.0030.04217.24
5.6.00.0140.03417.39
5.5.380.0100.01815.85
5.5.370.0030.02815.73
5.5.360.0020.02515.62
5.5.350.0070.02115.74
5.5.340.0050.01715.77
5.5.330.0030.03015.92
5.5.320.0070.04315.99
5.5.310.0030.04315.92
5.5.300.0040.02515.91
5.5.290.0050.04015.93
5.5.280.0120.03715.98
5.5.270.0100.03715.78
5.5.260.0100.03815.81
5.5.250.0050.04415.83
5.5.240.0000.03315.71
5.5.230.0070.04115.57
5.5.220.0070.04315.60
5.5.210.0130.03615.63
5.5.200.0130.03515.65
5.5.190.0090.04015.48
5.5.180.0090.03515.54
5.5.170.0000.01111.09
5.5.160.0060.04015.67
5.5.150.0050.04515.61
5.5.140.0080.04015.48
5.5.130.0050.03915.69
5.5.120.0050.04115.54
5.5.110.0050.04215.73
5.5.100.0090.04115.46
5.5.90.0050.03915.42
5.5.80.0100.03715.53
5.5.70.0030.04615.58
5.5.60.0080.03715.65
5.5.50.0080.04415.57
5.5.40.0050.04015.44
5.5.30.0020.03115.57
5.5.20.0100.03815.54
5.5.10.0030.04515.52
5.5.00.0070.04015.40
5.4.450.0100.02714.98
5.4.440.0050.03815.21
5.4.430.0070.04315.11
5.4.420.0100.04015.24
5.4.410.0070.03015.01
5.4.400.0030.04414.98
5.4.390.0080.04114.94
5.4.380.0060.04115.07
5.4.370.0080.04115.12
5.4.360.0080.04315.06
5.4.350.0080.04015.20
5.4.340.0030.04314.94
5.4.330.0000.00610.74
5.4.320.0080.03515.16
5.4.310.0020.04315.05
5.4.300.0070.02514.98
5.4.290.0070.03815.06
5.4.280.0070.03714.99
5.4.270.0050.04214.99
5.4.260.0050.02315.15
5.4.250.0090.03715.22
5.4.240.0090.03715.04
5.4.230.0080.04114.93
5.4.220.0050.04215.07
5.4.210.0130.03214.95
5.4.200.0050.04514.89
5.4.190.0050.04315.05
5.4.180.0050.04114.98
5.4.170.0030.03814.79
5.4.160.0070.03814.83
5.4.150.0080.04214.96
5.4.140.0010.04113.62
5.4.130.0030.04313.64
5.4.120.0030.04213.60
5.4.110.0070.04113.65
5.4.100.0060.03713.59
5.4.90.0030.03913.68
5.4.80.0080.03713.57
5.4.70.0120.03513.64
5.4.60.0070.03713.46
5.4.50.0080.03213.41
5.4.40.0070.02213.71
5.4.30.0080.04013.54
5.4.20.0080.03513.47
5.4.10.0030.04813.49
5.4.00.0100.02713.26
5.3.290.0100.02812.61
5.3.280.0020.02612.40
5.3.270.0080.03412.46
5.3.260.0070.04312.51
5.3.250.0020.04412.52
5.3.240.0080.04112.39
5.3.230.0080.04012.39
5.3.220.0050.03712.45
5.3.210.0030.04312.47
5.3.200.0020.02612.45
5.3.190.0030.04312.42
5.3.180.0050.04012.53
5.3.170.0120.03212.47
5.3.160.0080.03912.61
5.3.150.0100.03512.56
5.3.140.0070.04012.53
5.3.130.0070.03812.50
5.3.120.0080.04012.46
5.3.110.0050.03712.34
5.3.100.0070.03912.22
5.3.90.0080.03712.23
5.3.80.0090.03612.13
5.3.70.0030.03812.16
5.3.60.0030.04412.07
5.3.50.0090.03212.09
5.3.40.0060.03512.12
5.3.30.0100.03512.06
5.3.20.0030.04211.96
5.3.10.0070.03911.92
5.3.00.0060.03711.93
5.2.170.0010.03111.21
5.2.160.0050.01911.21
5.2.150.0030.02211.21
5.2.140.0010.03511.21
5.2.130.0030.03311.21
5.2.120.0050.03111.21
5.2.110.0030.03211.21
5.2.100.0010.03611.21
5.2.90.0020.03411.21
5.2.80.0060.01711.21
5.2.70.0100.03211.21
5.2.60.0080.02811.21
5.2.50.0030.03511.21
5.2.40.0020.03411.21
5.2.30.0030.03611.21
5.2.20.0080.03211.21
5.2.10.0050.02211.21
5.2.00.0020.01811.21
5.1.60.0000.02011.21
5.1.50.0060.02711.21
5.1.40.0060.02711.21
5.1.30.0030.03111.21
5.1.20.0020.03311.21
5.1.10.0070.02511.21
5.1.00.0070.02811.21
5.0.50.0060.02411.21
5.0.40.0000.02711.21
5.0.30.0040.03411.21
5.0.20.0020.02511.21
5.0.10.0030.02111.21
5.0.00.0000.02811.21
4.4.90.0080.01311.21
4.4.80.0000.02111.21
4.4.70.0050.01511.21
4.4.60.0050.01711.21
4.4.50.0000.01311.21
4.4.40.0020.02811.21
4.4.30.0020.02011.21
4.4.20.0050.01711.21
4.4.10.0020.02011.21
4.4.00.0030.02811.21
4.3.110.0020.02011.21
4.3.100.0020.02011.21
4.3.90.0000.02211.21
4.3.80.0040.02711.21
4.3.70.0010.02111.21
4.3.60.0000.02111.21
4.3.50.0020.02111.21
4.3.40.0020.02311.21
4.3.30.0030.01711.21
4.3.20.0010.02011.21
4.3.10.0000.02011.21
4.3.00.0030.01811.21

preferences:
49.78 ms | 401 KiB | 5 Q