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.40.0000.01418.55
8.3.30.0090.00918.79
8.3.20.0000.00720.07
8.3.10.0080.00020.26
8.3.00.0000.00817.25
8.2.170.0110.00722.96
8.2.160.0100.00320.57
8.2.150.0040.00724.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00422.23
8.2.110.0100.00020.18
8.2.100.0080.00318.16
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00318.04
8.2.50.0030.00618.07
8.2.40.0040.00418.20
8.2.30.0000.00719.31
8.2.20.0050.00317.67
8.2.10.0030.00518.09
8.2.00.0040.00417.71
8.1.270.0050.00322.19
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00318.75
8.1.230.0070.00419.16
8.1.220.0080.00017.74
8.1.210.0080.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0060.00318.49
8.1.160.0000.00722.00
8.1.150.0040.00418.90
8.1.140.0040.00417.31
8.1.130.0000.00717.68
8.1.120.0050.00317.32
8.1.110.0000.00817.50
8.1.100.0070.00017.46
8.1.90.0040.00417.44
8.1.80.0040.00417.34
8.1.70.0000.00717.45
8.1.60.0030.00617.54
8.1.50.0000.00817.51
8.1.40.0080.00017.46
8.1.30.0080.00017.66
8.1.20.0040.00417.60
8.1.10.0040.00417.46
8.1.00.0000.00717.49
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.36
8.0.270.0050.00517.11
8.0.260.0000.00617.30
8.0.250.0040.00416.85
8.0.240.0000.00716.95
8.0.230.0030.00316.98
8.0.220.0040.00416.91
8.0.210.0000.00816.88
8.0.200.0030.00316.87
8.0.190.0070.00016.81
8.0.180.0040.00416.90
8.0.170.0040.00416.89
8.0.160.0040.00416.82
8.0.150.0000.00716.88
8.0.140.0060.00316.75
8.0.130.0040.00413.27
8.0.120.0020.00516.86
8.0.110.0000.00816.89
8.0.100.0030.00516.73
8.0.90.0070.00016.88
8.0.80.0070.01016.88
8.0.70.0040.00416.83
8.0.60.0030.00316.76
8.0.50.0000.00716.86
8.0.30.0080.01316.84
8.0.20.0150.00917.40
8.0.10.0000.00716.88
8.0.00.0130.00416.75
7.4.330.0000.00615.03
7.4.320.0030.00316.51
7.4.300.0060.00016.61
7.4.290.0080.00016.44
7.4.280.0030.00316.53
7.4.270.0030.00316.49
7.4.260.0040.00416.39
7.4.250.0000.00916.55
7.4.240.0050.00216.42
7.4.230.0030.00316.69
7.4.220.0100.01016.36
7.4.210.0000.01416.52
7.4.200.0050.00216.62
7.4.160.0170.00716.27
7.4.150.0070.01317.40
7.4.140.0080.00817.86
7.4.130.0080.01016.47
7.4.120.0110.00616.38
7.4.110.0140.00416.62
7.4.100.0120.00616.41
7.4.90.0070.01016.56
7.4.80.0060.01518.80
7.4.70.0090.00916.56
7.4.60.0030.01316.51
7.4.50.0050.00016.56
7.4.40.0060.01016.48
7.4.30.0030.01316.60
7.4.00.0050.01414.74
7.3.330.0060.00013.05
7.3.320.0000.00613.02
7.3.310.0040.00416.09
7.3.300.0030.00316.12
7.3.290.0120.00616.37
7.3.280.0100.00516.30
7.3.270.0150.00917.40
7.3.260.0090.00916.23
7.3.250.0070.01116.33
7.3.240.0070.01116.46
7.3.230.0080.00816.50
7.3.210.0050.01116.37
7.3.200.0180.00319.39
7.3.190.0140.00316.51
7.3.180.0190.02216.30
7.3.170.0140.00316.27
7.3.160.0130.00316.50
7.3.120.0040.01114.80
7.3.110.0070.01114.73
7.3.100.0120.00314.98
7.3.90.0060.00614.80
7.3.80.0030.01214.60
7.3.70.0060.00314.86
7.3.60.0030.01314.62
7.3.50.0060.00914.54
7.3.40.0030.01014.67
7.3.30.0100.00714.91
7.3.20.0000.00916.63
7.3.10.0070.00716.82
7.3.00.0110.00016.61
7.2.330.0090.00916.64
7.2.320.0080.00916.71
7.2.310.0030.01416.61
7.2.300.0070.01016.33
7.2.290.0100.00716.71
7.2.250.0100.01015.05
7.2.240.0100.01014.90
7.2.230.0000.01715.09
7.2.220.0030.01014.96
7.2.210.0000.01515.07
7.2.200.0060.00314.86
7.2.190.0110.00414.94
7.2.180.0060.00914.90
7.2.170.0040.01115.04
7.2.00.0030.01519.26
7.1.330.0090.00615.66
7.1.320.0040.00815.70
7.1.310.0060.00915.90
7.1.300.0040.01415.80
7.1.290.0090.00615.82
7.1.280.0030.01115.46
7.1.270.0060.00915.59
7.1.260.0060.00615.82
7.1.100.0070.00717.93
7.1.70.0130.00317.15
7.1.60.0030.02219.32
7.1.50.0000.01516.93
7.1.00.0100.07022.54
7.0.200.0000.00916.67
7.0.140.0000.07722.02
7.0.60.0000.04719.86
7.0.50.0130.08017.81
7.0.40.0100.05020.24
7.0.30.0270.04020.09
7.0.20.0200.08720.00
7.0.10.0100.07720.02
7.0.00.0070.05020.19
5.6.280.0000.07320.89
5.6.210.0100.07020.66
5.6.200.0030.05318.19
5.6.190.0070.07320.41
5.6.180.0500.07720.32
5.6.170.0470.07020.71
5.6.160.0100.07320.50
5.6.150.0100.08018.18
5.6.140.0100.03318.21
5.6.130.0000.05718.18
5.6.120.0100.04020.78
5.6.110.0100.03721.00
5.6.100.0030.04721.00
5.6.90.0070.07021.10
5.6.80.0130.07320.41
5.5.350.0230.07320.43
5.5.340.0070.08017.88
5.5.330.0030.08020.38
5.5.320.0400.07720.24
5.5.310.0230.06720.30
5.5.300.0100.08017.95
5.5.290.0000.04317.95
5.5.280.0200.07020.77
5.5.270.0070.08320.89
5.5.260.0130.08020.86
5.5.250.0000.04720.57
5.5.240.0070.08320.16
5.4.450.1330.05319.57
5.4.440.0830.05719.60
5.4.430.0130.05019.60
5.4.420.0630.05319.50
5.4.410.0830.05319.00
5.4.400.0100.05018.75
5.4.390.0730.06318.78
5.4.380.0370.05018.50
5.4.370.0470.05018.50
5.4.360.0530.07018.69
5.4.350.0300.05718.68
5.4.340.0330.08318.77
5.4.320.0070.03512.46
5.4.310.0040.04012.45
5.4.300.0070.03512.46
5.4.290.0060.04012.46
5.4.280.0040.03612.35
5.4.270.0060.03712.35
5.4.260.0110.03912.35
5.4.250.0050.03812.35
5.4.240.0040.03812.35
5.4.230.0040.04012.34
5.4.220.0050.03912.34
5.4.210.0060.03612.34
5.4.200.0060.03812.34
5.4.190.0070.03512.34
5.4.180.0060.03512.34
5.4.170.0080.03912.35
5.4.160.0060.03812.34
5.4.150.0100.04112.34
5.4.140.0070.03512.03
5.4.130.0090.03212.02
5.4.120.0060.03411.97
5.4.110.0070.04011.96
5.4.100.0040.03711.96
5.4.90.0080.04211.96
5.4.80.0060.04811.96
5.4.70.0090.03811.96
5.4.60.0060.03911.97
5.4.50.0090.03511.96
5.4.40.0040.03511.95
5.4.30.0040.03911.95
5.4.20.0070.03711.95
5.4.10.0070.03211.95
5.4.00.0070.03411.44
5.3.290.0050.03912.80
5.3.280.0060.04012.71
5.3.270.0050.03912.72
5.3.260.0030.04112.72
5.3.250.0060.03612.72
5.3.240.0040.03812.72
5.3.230.0080.03412.71
5.3.220.0060.03712.68
5.3.210.0040.04012.68
5.3.200.0070.03412.68
5.3.190.0070.03612.68
5.3.180.0080.03412.67
5.3.170.0050.04012.67
5.3.160.0100.03612.67
5.3.150.0050.03812.67
5.3.140.0060.03612.66
5.3.130.0090.03512.66
5.3.120.0070.03712.66
5.3.110.0060.04112.66
5.3.100.0070.03812.12
5.3.90.0030.03712.08
5.3.80.0070.03312.08
5.3.70.0060.04112.07
5.3.60.0050.03712.06
5.3.50.0070.03412.00
5.3.40.0080.03612.00
5.3.30.0080.03611.95
5.3.20.0080.03211.72
5.3.10.0070.03211.69
5.3.00.0040.03811.68
5.2.170.0030.0349.18
5.2.160.0040.0299.18
5.2.150.0030.0339.18
5.2.140.0080.0299.18
5.2.130.0040.0369.14
5.2.120.0050.0299.14
5.2.110.0040.0349.15
5.2.100.0040.0319.14
5.2.90.0040.0299.14
5.2.80.0100.0289.14
5.2.70.0070.0359.14
5.2.60.0020.0349.09
5.2.50.0020.0329.05
5.2.40.0060.0279.03
5.2.30.0060.0289.02
5.2.20.0020.0319.00
5.2.10.0070.0338.93
5.2.00.0050.0288.78
5.1.60.0040.0278.07
5.1.50.0040.0318.06
5.1.40.0050.0238.04
5.1.30.0050.0248.39
5.1.20.0040.0268.41
5.1.10.0050.0278.14
5.1.00.0060.0248.14
5.0.50.0020.0286.62
5.0.40.0030.0196.48
5.0.30.0030.0366.29
5.0.20.0020.0246.27
5.0.10.0060.0236.25
5.0.00.0040.0326.24
4.4.90.0050.0144.78
4.4.80.0010.0184.75
4.4.70.0020.0184.76
4.4.60.0050.0144.76
4.4.50.0040.0144.77
4.4.40.0040.0244.71
4.4.30.0010.0174.75
4.4.20.0020.0164.85
4.4.10.0040.0144.85
4.4.00.0010.0264.76
4.3.110.0050.0204.67
4.3.100.0060.0184.66
4.3.90.0030.0214.64
4.3.80.0040.0274.58
4.3.70.0020.0164.63
4.3.60.0040.0194.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0010.0173.29
4.3.20.0010.0173.27
4.3.10.0080.0173.23
4.3.00.0170.00716.39

preferences:
36.11 ms | 400 KiB | 5 Q