3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = array('string', 1, null, '1', '0', 0, 0.0, array(), new StdClass, true, false, null); foreach ($types as $type) { var_dump((array) $type); }

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.0110.00418.16
8.3.50.0120.00721.11
8.3.40.0070.00718.76
8.3.30.0150.00318.89
8.3.20.0050.00220.29
8.3.10.0040.00420.59
8.3.00.0000.00817.38
8.2.180.0140.00716.75
8.2.170.0100.00722.96
8.2.160.0030.01020.52
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00722.25
8.2.110.0030.00620.52
8.2.100.0090.00317.80
8.2.90.0060.00319.07
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0060.00318.21
8.2.30.0050.00319.17
8.2.20.0040.00417.55
8.2.10.0000.00818.11
8.2.00.0000.00717.72
8.1.280.0060.00925.92
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.65
8.1.230.0040.00819.09
8.1.220.0050.00317.77
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.54
8.1.160.0000.00722.07
8.1.150.0040.00418.82
8.1.140.0000.00717.49
8.1.130.0040.00417.77
8.1.120.0050.00217.40
8.1.110.0040.00417.38
8.1.100.0050.00317.48
8.1.90.0070.00017.51
8.1.80.0000.00717.36
8.1.70.0030.00317.46
8.1.60.0080.00017.62
8.1.50.0000.00817.50
8.1.40.0030.00517.45
8.1.30.0000.00817.54
8.1.20.0050.00317.71
8.1.10.0050.00317.51
8.1.00.0070.00017.58
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0070.00018.37
8.0.270.0000.00916.77
8.0.260.0000.00617.16
8.0.250.0040.00416.86
8.0.240.0050.00216.94
8.0.230.0030.00316.84
8.0.220.0070.00016.76
8.0.210.0030.00316.92
8.0.200.0060.00016.85
8.0.190.0000.00816.99
8.0.180.0000.00716.97
8.0.170.0000.00816.92
8.0.160.0050.00316.94
8.0.150.0030.00316.77
8.0.140.0040.00816.80
8.0.130.0000.00613.30
8.0.120.0030.00516.83
8.0.110.0030.00616.89
8.0.100.0030.00516.82
8.0.90.0070.00016.92
8.0.80.0030.01616.83
8.0.70.0000.00716.92
8.0.60.0000.00816.78
8.0.50.0050.00216.91
8.0.30.0100.00917.04
8.0.20.0150.00517.40
8.0.10.0070.00016.97
8.0.00.0120.00516.98
7.4.330.0030.00315.00
7.4.320.0030.00316.50
7.4.300.0040.00416.36
7.4.290.0000.00816.60
7.4.280.0030.00316.49
7.4.270.0000.00716.43
7.4.260.0000.00716.58
7.4.250.0000.00716.48
7.4.240.0020.00516.47
7.4.230.0030.00316.46
7.4.220.0060.01216.48
7.4.210.0120.00316.60
7.4.200.0040.00416.31
7.4.160.0100.01016.46
7.4.150.0060.01317.40
7.4.140.0050.01117.86
7.4.130.0070.01016.51
7.4.120.0080.01216.68
7.4.110.0050.01116.57
7.4.100.0110.00716.57
7.4.90.0070.01116.34
7.4.80.0160.00318.80
7.4.70.0120.00416.49
7.4.60.0120.00416.47
7.4.50.0000.00416.46
7.4.40.0030.01516.59
7.4.30.0080.00816.32
7.4.00.0060.01014.82
7.3.330.0000.00613.14
7.3.320.0000.00513.18
7.3.310.0040.00416.11
7.3.300.0000.00716.11
7.3.290.0070.00716.31
7.3.280.0090.00816.31
7.3.270.0160.00917.40
7.3.260.0140.00716.47
7.3.250.0060.01016.46
7.3.240.0110.00716.46
7.3.230.0090.00916.39
7.3.210.0060.01116.50
7.3.200.0080.01419.39
7.3.190.0100.00716.39
7.3.180.0260.03116.22
7.3.170.0070.01016.44
7.3.160.0080.00816.53
7.3.120.0110.00714.80
7.3.110.0070.01115.04
7.3.100.0040.01114.80
7.3.90.0000.00914.77
7.3.80.0110.00415.13
7.3.70.0000.01414.77
7.3.60.0030.00714.88
7.3.50.0030.01014.72
7.3.40.0070.00314.82
7.3.30.0030.00514.88
7.3.20.0070.00716.55
7.3.10.0040.00816.52
7.3.00.0070.00816.72
7.2.330.0070.01116.75
7.2.320.0190.00016.62
7.2.310.0130.00316.50
7.2.300.0150.00616.51
7.2.290.0120.00316.68
7.2.250.0070.01414.92
7.2.240.0030.01614.79
7.2.230.0060.01015.17
7.2.220.0030.00914.68
7.2.210.0060.00915.12
7.2.200.0030.01014.93
7.2.190.0090.00615.17
7.2.180.0080.00415.12
7.2.170.0000.01515.12
7.2.130.0090.00616.53
7.2.120.0130.00017.08
7.2.110.0110.00316.96
7.2.100.0040.01617.00
7.2.90.0110.00416.91
7.2.80.0060.00916.95
7.2.70.0070.00716.97
7.2.60.0100.00516.69
7.2.50.0060.00316.65
7.2.40.0100.00317.00
7.2.30.0030.01016.87
7.2.20.0090.00316.85
7.2.10.0090.00716.95
7.2.00.0000.01216.91
7.1.330.0030.01015.73
7.1.320.0090.00015.61
7.1.310.0060.00615.80
7.1.300.0030.00615.79
7.1.290.0030.00615.83
7.1.280.0030.01015.64
7.1.270.0070.00715.62
7.1.260.0090.00615.62
7.1.250.0000.01115.84
7.1.200.0030.01015.47
7.1.100.0000.01418.16
7.1.70.0040.01517.11
7.1.60.0090.01619.32
7.1.50.0090.00916.93
7.1.00.0030.07722.44
7.0.200.0030.00716.67
7.0.140.0000.07721.94
7.0.60.0000.09319.86
7.0.50.0200.06017.82
7.0.40.0000.09020.08
7.0.30.0200.06020.18
7.0.20.0330.06020.30
7.0.10.0030.05020.14
7.0.00.0070.05720.08
5.6.280.0030.07321.15
5.6.210.0130.07320.69
5.6.200.0000.04318.13
5.6.190.0170.07320.27
5.6.180.0270.04320.67
5.6.170.0300.07320.45
5.6.160.0000.04320.46
5.6.150.0070.07018.15
5.6.140.0000.07018.15
5.6.130.0100.03718.18
5.6.120.0070.03720.98
5.6.110.0030.07020.97
5.6.100.0070.08021.11
5.6.90.0030.08721.01
5.6.80.0030.03720.38
5.5.350.0230.08020.52
5.5.340.0170.07317.90
5.5.330.0070.04720.38
5.5.320.0300.07020.34
5.5.310.0400.05720.18
5.5.300.0070.03717.91
5.5.290.0000.04317.93
5.5.280.0100.04720.88
5.5.270.0070.08720.72
5.5.260.0030.05720.79
5.5.250.0000.07020.68
5.5.240.0230.02720.18
5.4.450.0300.07019.21
5.4.440.0300.04019.45
5.4.430.0270.06319.11
5.4.420.0230.06319.25
5.4.410.0170.07319.00
5.4.400.0230.07018.88
5.4.390.0270.07318.81
5.4.380.0300.06319.13
5.4.370.0100.04319.13
5.4.360.0230.07318.92
5.4.350.0270.07018.79
5.4.340.0300.06718.91
5.4.320.0230.05319.13
5.4.310.0170.04718.79
5.4.300.0230.06019.11
5.4.290.0070.06319.24
5.4.280.0200.06318.88
5.4.270.0170.07018.91
5.4.260.0130.07018.92
5.4.250.0300.02318.78
5.4.240.0230.07318.82
5.4.230.0100.04719.24
5.4.220.0230.07318.88
5.4.210.0270.04019.15
5.4.200.0170.07719.09
5.4.190.0270.07019.05
5.4.180.0230.04019.27
5.4.170.0230.05019.16
5.4.160.0300.06719.20
5.4.150.0200.06719.03
5.4.140.0270.06716.16
5.4.130.0230.05316.43
5.4.120.0270.06316.27
5.4.110.0230.07016.39
5.4.100.0130.04016.47
5.4.90.0270.05716.50
5.4.80.0230.05716.39
5.4.70.0200.03016.48
5.4.60.0170.03316.37
5.4.50.0070.04716.36
5.4.40.0700.05316.41
5.4.30.0130.04016.31
5.4.20.0330.04016.41
5.4.10.0230.07016.38
5.4.00.0270.03715.61
5.3.290.0230.05714.61
5.3.280.0170.08314.52
5.3.270.0300.07014.71
5.3.260.0270.07314.55
5.3.250.0270.06014.51
5.3.240.0300.06014.65
5.3.230.0170.04714.55
5.3.220.0170.07014.40
5.3.210.0130.04314.61
5.3.200.0230.04014.42
5.3.190.0200.03714.40
5.3.180.0230.05314.54
5.3.170.0170.05014.46
5.3.160.0230.06314.52
5.3.150.0000.05714.39
5.3.140.0070.03314.60
5.3.130.0200.07014.40
5.3.120.0270.03714.50
5.3.110.0200.07714.38
5.3.100.0300.03013.98
5.3.90.0200.04313.87
5.3.80.0200.04713.86
5.3.70.0270.04013.87
5.3.60.0200.04313.78
5.3.50.0270.06713.85
5.3.40.0270.04314.04
5.3.30.0270.03013.82
5.3.20.0200.03713.57
5.3.10.0230.06313.60
5.3.00.0200.06013.60
5.2.170.0200.03012.04
5.2.160.0170.04012.04
5.2.150.0200.06012.04
5.2.140.0130.03312.04
5.2.130.0230.05712.04
5.2.120.0300.05012.04
5.2.110.0230.05312.04
5.2.100.0200.06012.04
5.2.90.0200.04712.04
5.2.80.0200.06312.04
5.2.70.0100.04312.04
5.2.60.0200.06012.04
5.2.50.0270.05012.04
5.2.40.0170.05012.04
5.2.30.0170.04312.04
5.2.20.0270.05712.04
5.2.10.0100.05712.04
5.2.00.0070.06312.04
5.1.60.0100.04312.04
5.1.50.0130.05312.04
5.1.40.0130.02712.04
5.1.30.0130.05712.04
5.1.20.0200.04712.04
5.1.10.0200.05012.04
5.1.00.0200.04312.04
5.0.50.0030.04712.04
5.0.40.0070.03312.04
5.0.30.0100.06312.04
5.0.20.0100.03312.04
5.0.10.0070.03712.04
5.0.00.0170.05712.04
4.4.90.0030.03312.04
4.4.80.0100.03312.04
4.4.70.0130.01312.04
4.4.60.0130.03012.04
4.4.50.0070.03312.04
4.4.40.0030.03712.04
4.4.30.0100.01712.04
4.4.20.0030.03312.04
4.4.10.0070.03012.04
4.4.00.0070.03312.04
4.3.110.0100.03312.04
4.3.100.0070.02712.04
4.3.90.0070.02712.04
4.3.80.0070.05312.04
4.3.70.0070.02012.04
4.3.60.0070.03312.04
4.3.50.0170.01012.04
4.3.40.0070.02712.04
4.3.30.0000.04012.04
4.3.20.0030.02012.04
4.3.10.0030.03312.04
4.3.00.0070.03012.04

preferences:
48.47 ms | 401 KiB | 5 Q