3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Strings containing valid integers will be cast to the integer type. // From: http://www.php.net/manual/en/language.types.array.php $arr[123] = 1; $arr['123'] = 2; $arr["123"] = 3; print_r($arr);

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.0100.01016.63
8.3.50.0160.00721.96
8.3.40.0120.00318.83
8.3.30.0110.00418.77
8.3.20.0000.00720.08
8.3.10.0070.00023.69
8.3.00.0080.00022.43
8.2.180.0060.01316.50
8.2.170.0100.01022.96
8.2.160.0070.00722.14
8.2.150.0050.00324.18
8.2.140.0070.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00422.31
8.2.110.0060.00319.27
8.2.100.0090.00317.78
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0040.00417.49
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0080.00019.41
8.2.30.0040.00418.05
8.2.20.0040.00417.50
8.2.10.0060.00319.46
8.2.00.0070.00017.57
8.1.280.0120.00325.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.01319.06
8.1.230.0080.00417.51
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0050.00217.51
8.1.180.0060.00318.10
8.1.170.0030.00618.58
8.1.160.0050.00321.81
8.1.150.0040.00418.55
8.1.140.0020.00517.36
8.1.130.0000.00817.79
8.1.120.0040.00417.34
8.1.110.0070.00017.22
8.1.100.0000.00817.36
8.1.90.0000.00717.21
8.1.80.0030.00717.36
8.1.70.0040.00417.26
8.1.60.0050.00317.37
8.1.50.0080.00017.27
8.1.40.0040.00417.41
8.1.30.0000.00717.37
8.1.20.0040.00417.44
8.1.10.0040.00417.40
8.1.00.0070.00017.37
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.29
8.0.270.0050.00217.10
8.0.260.0060.00316.72
8.0.250.0000.00616.85
8.0.240.0080.00016.84
8.0.230.0030.00516.85
8.0.220.0050.00316.69
8.0.210.0070.00016.75
8.0.200.0060.00016.70
8.0.190.0070.00016.71
8.0.180.0000.00816.66
8.0.170.0050.00316.79
8.0.160.0030.00316.84
8.0.150.0000.00716.70
8.0.140.0000.00816.69
8.0.130.0060.00013.14
8.0.120.0070.00016.70
8.0.110.0000.00716.78
8.0.100.0000.00716.53
8.0.90.0000.00716.61
8.0.80.0080.01116.72
8.0.70.0030.00416.74
8.0.60.0070.00016.72
8.0.50.0050.00216.65
8.0.30.0100.00917.13
8.0.20.0100.00817.40
8.0.10.0000.00716.80
8.0.00.0090.01016.69
7.4.330.0050.00015.00
7.4.320.0030.00316.30
7.4.300.0000.00616.54
7.4.290.0030.00316.42
7.4.280.0040.00416.56
7.4.270.0030.00316.53
7.4.260.0000.00716.50
7.4.250.0000.00816.49
7.4.240.0000.00716.52
7.4.230.0000.00716.41
7.4.220.0040.01316.64
7.4.210.0050.00916.50
7.4.200.0040.00416.50
7.4.190.0090.00016.48
7.4.160.0100.00616.66
7.4.150.0100.00917.40
7.4.140.0090.00917.86
7.4.130.0100.00716.35
7.4.120.0100.01016.46
7.4.110.0070.01116.54
7.4.100.0030.01316.50
7.4.90.0130.00316.54
7.4.80.0080.01116.39
7.4.70.0090.00616.45
7.4.60.0100.00616.23
7.4.50.0030.00316.30
7.4.40.0000.01222.77
7.4.30.0080.01116.49
7.4.00.0100.00314.68
7.3.330.0050.00013.08
7.3.320.0060.00013.11
7.3.310.0000.00716.03
7.3.300.0000.00616.10
7.3.290.0100.00316.21
7.3.280.0080.00716.18
7.3.270.0060.01017.40
7.3.260.0110.00516.53
7.3.250.0050.01216.17
7.3.240.0060.01016.65
7.3.230.0040.01216.54
7.3.210.0130.00416.40
7.3.200.0130.00919.39
7.3.190.0100.01316.48
7.3.180.0030.01316.45
7.3.170.0080.00816.54
7.3.160.0030.01216.23
7.3.120.0090.00914.71
7.3.10.0110.00316.34
7.3.00.0150.00316.44
7.2.330.0170.00316.57
7.2.320.0120.00916.52
7.2.310.0140.00316.54
7.2.300.0170.00716.60
7.2.290.0100.00616.59
7.2.130.0120.00916.57
7.2.120.0150.00016.54
7.2.110.0060.00816.39
7.2.100.0080.00816.58
7.2.90.0090.00616.41
7.2.80.0140.00416.65
7.2.70.0100.00616.35
7.2.60.0100.00316.73
7.2.50.0000.01116.78
7.2.40.0030.00816.46
7.2.30.0060.01515.95
7.2.20.0000.01416.58
7.2.10.0000.00916.54
7.2.00.0080.00617.99
7.1.250.0140.00315.43
7.1.100.0030.01018.02
7.1.70.0000.00916.93
7.1.60.0120.01219.29
7.1.50.0200.01334.32
7.1.00.0070.07322.31
7.0.200.0040.01116.74
7.0.140.0000.07722.05
7.0.60.0070.05720.06
7.0.50.0070.07017.86
7.0.40.0170.07320.18
7.0.30.0330.06020.08
7.0.20.0200.08320.12
7.0.10.0230.06020.24
7.0.00.0030.09320.16
5.6.280.0070.07020.90
5.6.210.0130.06720.74
5.6.200.0070.06718.21
5.6.190.0070.04720.41
5.6.180.0300.07720.59
5.6.170.0170.05020.39
5.6.160.0030.04020.71
5.6.150.0030.04018.18
5.6.140.0070.03718.22
5.6.130.0070.06318.15
5.6.120.0130.05320.98
5.6.110.0100.07020.96
5.6.100.0100.05020.96
5.6.90.0100.08020.95
5.6.80.0170.07020.32
5.6.70.4100.03020.46
5.5.350.0270.06720.40
5.5.340.0200.08718.09
5.5.330.0070.07020.25
5.5.320.0170.08020.13
5.5.310.0270.03720.28
5.5.300.0170.06717.98
5.5.290.0070.08017.96
5.5.280.0070.07720.88
5.5.270.0130.07320.87
5.5.260.0170.07020.63
5.5.250.0170.07320.69
5.5.240.0000.06020.27
5.4.450.0530.05719.63
5.4.440.0300.06019.69
5.4.430.0730.05319.39
5.4.420.0070.06019.21
5.4.410.0130.05018.93
5.4.400.0030.06018.73
5.4.390.0170.05018.64
5.4.380.0170.05018.53
5.4.370.0530.06718.78
5.4.360.0600.06318.59
5.4.350.0500.05018.48
5.4.340.0400.06718.53
5.4.320.0030.04512.48
5.4.310.0070.03712.47
5.4.300.0060.04012.48
5.4.290.0040.03912.47
5.4.280.0110.06012.34
5.4.270.0170.11812.34
5.4.260.0050.05612.34
5.4.250.0180.13612.34
5.4.240.0110.08412.34
5.4.230.0130.12212.33
5.4.220.0180.14312.34
5.4.210.0180.05512.34
5.4.200.0110.06012.34
5.4.190.0210.07612.33
5.4.180.0230.08012.33
5.4.170.0140.07912.34
5.4.160.0140.07312.34
5.4.150.0160.07012.33
5.4.140.0130.07012.02
5.4.130.0160.09212.01
5.4.120.0230.09911.96
5.4.110.0130.09711.96
5.4.100.0070.05211.96
5.4.90.0070.05611.96
5.4.80.0120.07211.96
5.4.70.0110.06011.95
5.4.60.0100.05411.95
5.4.50.0140.05611.96
5.4.40.0110.06811.94
5.4.30.0210.08511.94
5.4.20.0170.14311.94
5.4.10.0120.07711.94
5.4.00.0060.06011.43
5.3.290.0080.04112.80
5.3.280.0190.09512.71
5.3.270.0120.06112.72
5.3.260.0070.06512.72
5.3.250.0090.05712.72
5.3.240.0180.08812.71
5.3.230.0090.08512.71
5.3.220.0170.07812.68
5.3.210.0110.06812.68
5.3.200.0080.09212.68
5.3.190.0140.06812.68
5.3.180.0120.08412.67
5.3.170.0160.08812.67
5.3.160.0280.11612.68
5.3.150.0240.12512.68
5.3.140.0150.07812.66
5.3.130.0090.09412.66
5.3.120.0160.07412.66
5.3.110.0120.06112.66
5.3.100.0130.06812.12
5.3.90.0130.05312.09
5.3.80.0150.09812.08
5.3.70.0070.05412.07
5.3.60.0190.10112.07
5.3.50.0090.08112.00
5.3.40.0100.06012.00
5.3.30.0150.08511.94
5.3.20.0170.08211.73
5.3.10.0150.07411.69
5.3.00.0140.07111.68
5.2.170.0070.0519.17
5.2.160.0030.0369.17
5.2.150.0050.0339.18
5.2.140.0080.0479.17
5.2.130.0080.0399.13
5.2.120.0320.1129.13
5.2.110.0080.0809.14
5.2.100.0120.0539.14
5.2.90.0050.0569.13
5.2.80.0160.0919.13
5.2.70.0130.0859.13
5.2.60.0060.0489.09
5.2.50.0120.0619.05
5.2.40.0190.0569.03
5.2.30.0160.0609.00
5.2.20.0160.0598.99
5.2.10.0090.0458.91
5.2.00.0070.0598.77
5.1.60.0210.0748.05
5.1.50.0040.0538.06
5.1.40.0090.0468.04
5.1.30.0050.0408.39
5.1.20.0040.0428.41
5.1.10.0080.0418.14
5.1.00.0070.0688.13
5.0.50.0110.0846.61
5.0.40.0100.0466.47
5.0.30.0050.0696.28
5.0.20.0110.0536.25
5.0.10.0100.0386.22
5.0.00.0050.0616.21
4.4.90.0040.0164.78
4.4.80.0090.0474.75
4.4.70.0340.0624.76
4.4.60.0090.0544.75
4.4.50.0050.0504.77
4.4.40.0060.0504.71
4.4.30.0050.0334.76
4.4.20.0060.0374.85
4.4.10.0080.0424.85
4.4.00.0050.0374.75
4.3.110.0160.0764.67
4.3.100.0060.0494.67
4.3.90.0040.0474.63
4.3.80.0090.0604.59
4.3.70.0080.0424.63
4.3.60.0110.0414.62
4.3.50.0150.0504.63
4.3.40.0050.0534.54
4.3.30.0080.0433.28
4.3.20.0080.0303.26
4.3.10.0040.0243.23
4.3.00.0030.02013.64

preferences:
46.95 ms | 401 KiB | 5 Q