3v4l.org

run code in 300+ PHP versions simultaneously
<?php $types = array('string', 1, '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.0130.00318.84
8.3.30.0170.00319.01
8.3.20.0030.00620.34
8.3.10.0040.00420.48
8.3.00.0030.00617.50
8.2.170.0090.00622.96
8.2.160.0080.00620.22
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0000.00721.84
8.2.110.0030.00620.27
8.2.100.0000.01217.91
8.2.90.0040.00419.36
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0030.00617.93
8.2.50.0030.00518.07
8.2.40.0070.00018.20
8.2.30.0000.00719.23
8.2.20.0070.00017.57
8.2.10.0040.00418.06
8.2.00.0040.00417.60
8.1.270.0000.00823.85
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.66
8.1.230.0060.00619.19
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.23
8.1.190.0040.00417.36
8.1.180.0030.00618.10
8.1.170.0070.00418.24
8.1.160.0040.00421.92
8.1.150.0000.00718.93
8.1.140.0040.00417.45
8.1.130.0000.00717.87
8.1.120.0040.00417.43
8.1.110.0040.00417.45
8.1.100.0070.00017.49
8.1.90.0030.00317.53
8.1.80.0040.00417.46
8.1.70.0000.00717.34
8.1.60.0040.00417.46
8.1.50.0080.00017.36
8.1.40.0000.00817.52
8.1.30.0030.00617.58
8.1.20.0080.00017.54
8.1.10.0070.00017.55
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0080.00317.25
8.0.260.0030.00317.29
8.0.250.0030.00316.93
8.0.240.0040.00417.01
8.0.230.0000.00716.82
8.0.220.0000.00716.82
8.0.210.0070.00016.84
8.0.200.0000.00616.93
8.0.190.0040.00416.96
8.0.180.0070.00016.76
8.0.170.0030.00616.89
8.0.160.0000.00716.88
8.0.150.0040.00416.88
8.0.140.0030.00616.75
8.0.130.0070.00013.29
8.0.120.0080.00016.82
8.0.110.0040.00416.89
8.0.100.0000.00716.84
8.0.90.0040.00416.95
8.0.80.0100.00616.77
8.0.70.0080.00016.91
8.0.60.0000.00816.79
8.0.50.0000.00716.78
8.0.30.0090.01117.25
8.0.20.0130.00917.40
8.0.10.0050.00217.07
8.0.00.0070.01016.70
7.4.330.0030.00315.00
7.4.320.0030.00316.59
7.4.300.0030.00316.58
7.4.290.0030.00316.50
7.4.280.0030.00316.58
7.4.270.0000.00716.41
7.4.260.0000.00716.57
7.4.250.0040.00416.60
7.4.240.0010.00616.56
7.4.230.0030.00316.58
7.4.220.0090.01616.41
7.4.210.0080.00816.43
7.4.200.0050.00216.63
7.4.160.0190.00316.49
7.4.150.0060.01717.40
7.4.140.0140.00717.86
7.4.130.0130.00516.46
7.4.120.0070.01016.43
7.4.110.0100.00716.44
7.4.100.0040.01416.52
7.4.90.0100.00916.48
7.4.80.0170.00018.80
7.4.70.0060.01016.52
7.4.60.0160.00716.49
7.4.50.0040.00416.43
7.4.40.0050.01416.41
7.4.30.0170.00016.57
7.4.00.0100.00914.80
7.3.330.0000.00513.06
7.3.320.0050.00013.17
7.3.310.0000.00716.32
7.3.300.0030.00316.29
7.3.290.0070.01016.25
7.3.280.0080.01016.26
7.3.270.0070.01117.40
7.3.260.0070.01116.55
7.3.250.0090.00816.40
7.3.240.0060.01216.19
7.3.230.0090.00916.53
7.3.210.0100.00716.30
7.3.200.0080.01119.39
7.3.190.0090.01116.52
7.3.180.0090.01216.37
7.3.170.0120.00416.27
7.3.160.0120.00816.50
7.3.120.0070.01015.12
7.3.110.0060.01215.03
7.3.100.0080.00414.64
7.3.90.0040.01114.52
7.3.80.0120.00314.90
7.3.70.0090.00614.80
7.3.60.0090.00314.80
7.3.50.0070.00714.83
7.3.40.0060.00614.55
7.3.30.0120.00014.71
7.3.20.0000.01416.77
7.3.10.0000.00916.59
7.3.00.0060.00316.19
7.2.330.0040.01416.32
7.2.320.0030.01416.39
7.2.310.0060.01216.79
7.2.300.0090.00916.59
7.2.290.0030.01816.68
7.2.250.0090.00915.00
7.2.240.0070.01315.34
7.2.230.0030.01515.12
7.2.220.0040.00815.07
7.2.210.0080.00814.69
7.2.200.0030.01414.94
7.2.190.0090.00615.13
7.2.180.0120.00414.89
7.2.170.0090.00615.17
7.2.00.0030.01319.38
7.1.330.0070.00715.70
7.1.320.0060.01215.57
7.1.310.0070.00715.57
7.1.300.0060.00615.64
7.1.290.0060.00315.78
7.1.280.0060.00615.74
7.1.270.0070.01015.30
7.1.260.0080.00615.66
7.1.100.0070.00718.10
7.1.70.0110.00716.95
7.1.60.0130.01019.32
7.1.50.0100.01016.51
7.1.00.0100.07022.48
7.0.200.0070.00016.57
7.0.140.0030.07022.08
7.0.60.0100.07019.93
7.0.50.0170.06717.89
7.0.40.0030.04320.20
7.0.30.0130.04320.13
7.0.20.0170.05720.19
7.0.10.0370.07720.00
7.0.00.0030.04320.17
5.6.280.0030.07321.14
5.6.210.0100.07320.52
5.6.200.0070.05018.21
5.6.190.0070.06720.57
5.6.180.0230.04320.77
5.6.170.0370.07320.51
5.6.160.0100.08720.38
5.6.150.0130.07318.20
5.6.140.0100.06718.11
5.6.130.0030.07018.13
5.6.120.0130.08020.98
5.6.110.0100.03721.00
5.6.100.0100.06721.00
5.6.90.0070.08321.01
5.6.80.0030.06320.48
5.5.350.0100.08020.38
5.5.340.0100.08017.95
5.5.330.0170.04720.21
5.5.320.0430.07320.13
5.5.310.0100.04720.28
5.5.300.0070.07317.98
5.5.290.0100.05717.94
5.5.280.0170.07020.87
5.5.270.0030.04720.79
5.5.260.0170.07020.83
5.5.250.0070.06020.64
5.5.240.4100.04020.02
5.4.450.0430.04319.46
5.4.440.0930.05319.44
5.4.430.0830.06019.59
5.4.420.1100.05019.63
5.4.410.0900.04719.19
5.4.400.0770.03719.12
5.4.390.0900.06719.03
5.4.380.0370.06718.70
5.4.370.0270.08718.65
5.4.360.0300.05318.50
5.4.350.0370.07018.61
5.4.340.0600.07018.57
5.4.320.0100.04312.45
5.4.310.0020.04312.46
5.4.300.0030.03812.45
5.4.290.0080.03512.45
5.4.280.0070.03312.35
5.4.270.0050.03812.35
5.4.260.0060.03712.35
5.4.250.0070.04412.35
5.4.240.0080.03512.35
5.4.230.0080.03912.34
5.4.220.0070.03712.34
5.4.210.0080.03612.34
5.4.200.0100.03712.34
5.4.190.0050.03812.34
5.4.180.0040.04112.34
5.4.170.0050.03712.35
5.4.160.0050.03612.34
5.4.150.0060.03612.34
5.4.140.0080.03512.03
5.4.130.0070.03612.01
5.4.120.0070.03711.97
5.4.110.0060.03411.97
5.4.100.0070.04011.97
5.4.90.0050.04211.96
5.4.80.0100.03311.97
5.4.70.0040.03711.96
5.4.60.0030.03711.97
5.4.50.0040.03611.96
5.4.40.0070.03311.95
5.4.30.0040.03611.95
5.4.20.0050.03611.95
5.4.10.0060.03411.95
5.4.00.0050.03711.45
5.3.290.0060.04212.80
5.3.280.0070.04512.70
5.3.270.0070.03712.72
5.3.260.0050.03912.72
5.3.250.0100.03912.72
5.3.240.0060.03612.72
5.3.230.0050.03812.71
5.3.220.0070.04112.68
5.3.210.0060.04012.68
5.3.200.0080.03712.68
5.3.190.0070.03612.68
5.3.180.0090.03612.67
5.3.170.0040.04012.66
5.3.160.0080.03612.67
5.3.150.0080.04912.67
5.3.140.0060.03712.66
5.3.130.0070.03712.66
5.3.120.0050.03912.66
5.3.110.0110.03912.66
5.3.100.0040.03912.12
5.3.90.0050.03612.09
5.3.80.0090.03312.08
5.3.70.0070.04112.08
5.3.60.0080.03712.06
5.3.50.0070.04112.00
5.3.40.0050.03612.00
5.3.30.0070.03211.95
5.3.20.0050.03511.72
5.3.10.0020.03711.69
5.3.00.0060.04511.68
5.2.170.0090.0329.18
5.2.160.0060.0279.18
5.2.150.0070.0369.18
5.2.140.0070.0309.18
5.2.130.0030.0379.13
5.2.120.0050.0309.14
5.2.110.0050.0289.14
5.2.100.0050.0349.14
5.2.90.0080.0259.14
5.2.80.0050.0339.14
5.2.70.0040.0299.14
5.2.60.0060.0279.09
5.2.50.0030.0339.06
5.2.40.0050.0299.04
5.2.30.0090.0319.01
5.2.20.0040.0289.00
5.2.10.0020.0308.92
5.2.00.0030.0308.78
5.1.60.0050.0268.07
5.1.50.0010.0278.06
5.1.40.0070.0248.05
5.1.30.0050.0248.39
5.1.20.0070.0298.42
5.1.10.0030.0268.14
5.1.00.0070.0288.14
5.0.50.0040.0246.62
5.0.40.0030.0266.48
5.0.30.0040.0326.29
5.0.20.0010.0286.27
5.0.10.0030.0226.25
5.0.00.0060.0336.24
4.4.90.0030.0174.78
4.4.80.0000.0194.76
4.4.70.0030.0194.75
4.4.60.0020.0194.76
4.4.50.0040.0134.77
4.4.40.0040.0304.71
4.4.30.0020.0204.75
4.4.20.0050.0144.84
4.4.10.0020.0164.85
4.4.00.0040.0234.76
4.3.110.0040.0184.67
4.3.100.0020.0164.66
4.3.90.0050.0174.63
4.3.80.0040.0274.58
4.3.70.0020.0194.63
4.3.60.0020.0214.63
4.3.50.0050.0174.63
4.3.40.0060.0244.54
4.3.30.0020.0203.29
4.3.20.0030.0203.27
4.3.10.0030.0183.23
4.3.00.0070.01716.39

preferences:
43.11 ms | 400 KiB | 5 Q