3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array_reduce( array(), function ($id, $arg) { if (is_scalar($arg) || is_resource($arg)) { return $id.$arg; } return is_object($arg) ? spl_object_hash($arg) : serialize($arg); }, '' ); var_dump($a);

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.48
8.3.50.0120.00622.15
8.3.40.0070.01318.59
8.3.30.0120.00918.88
8.3.20.0000.00720.25
8.3.10.0040.00421.90
8.3.00.0000.00819.13
8.2.180.0150.00618.41
8.2.170.0120.00322.96
8.2.160.0070.00720.35
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.35
8.2.110.0040.00422.11
8.2.100.0080.00317.50
8.2.90.0070.00019.17
8.2.80.0030.00617.97
8.2.70.0070.00317.36
8.2.60.0090.00018.04
8.2.50.0080.00018.07
8.2.40.0040.00419.88
8.2.30.0030.00618.08
8.2.20.0050.00317.68
8.2.10.0040.00418.05
8.2.00.0000.00817.69
8.1.280.0120.00925.92
8.1.270.0080.00020.70
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.92
8.1.230.0080.00419.05
8.1.220.0030.00617.77
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0060.00317.22
8.1.180.0040.00418.10
8.1.170.0050.00320.50
8.1.160.0000.00721.93
8.1.150.0070.00018.94
8.1.140.0040.00417.34
8.1.130.0090.00017.83
8.1.120.0080.00017.38
8.1.110.0020.00517.45
8.1.100.0000.00917.46
8.1.90.0030.00317.46
8.1.80.0000.00917.50
8.1.70.0030.00317.35
8.1.60.0040.00417.56
8.1.50.0040.00417.55
8.1.40.0000.00817.59
8.1.30.0080.00017.67
8.1.20.0040.00417.59
8.1.10.0000.00717.47
8.1.00.0030.00517.41
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0000.00818.38
8.0.270.0000.00717.20
8.0.260.0060.00017.05
8.0.250.0030.00316.85
8.0.240.0100.00016.77
8.0.230.0040.00416.88
8.0.220.0000.00716.70
8.0.210.0020.00516.84
8.0.200.0000.00916.84
8.0.190.0000.00816.92
8.0.180.0000.00716.89
8.0.170.0040.00416.98
8.0.160.0070.00016.86
8.0.150.0040.00316.86
8.0.140.0050.00316.81
8.0.130.0000.00513.25
8.0.120.0030.00516.93
8.0.110.0040.00416.86
8.0.100.0080.00016.77
8.0.90.0000.00716.86
8.0.80.0160.00316.87
8.0.70.0000.00716.89
8.0.60.0000.00716.84
8.0.50.0040.00416.89
8.0.30.0090.01016.92
8.0.20.0140.00617.40
8.0.10.0050.00317.13
8.0.00.0100.01316.89
7.4.330.0050.00015.03
7.4.320.0070.00016.60
7.4.300.0060.00016.51
7.4.290.0000.00716.51
7.4.280.0040.00416.46
7.4.270.0000.00716.49
7.4.260.0040.00416.56
7.4.250.0030.00316.56
7.4.240.0060.00216.54
7.4.230.0000.00716.53
7.4.220.0140.00316.47
7.4.210.0100.01016.55
7.4.200.0040.00416.68
7.4.160.0100.01016.22
7.4.150.0160.01017.40
7.4.140.0070.00917.86
7.4.130.0070.01016.45
7.4.120.0100.01016.38
7.4.110.0150.00616.48
7.4.100.0100.01316.36
7.4.90.0080.00816.43
7.4.80.0030.01719.39
7.4.70.0000.01816.51
7.4.60.0060.00916.41
7.4.50.0040.00416.55
7.4.40.0080.00816.24
7.4.30.0110.00616.45
7.4.00.0050.01114.88
7.3.330.0050.00013.24
7.3.320.0060.00613.19
7.3.310.0030.00516.14
7.3.300.0000.00716.12
7.3.290.0090.00716.21
7.3.280.0080.00716.26
7.3.270.0070.01017.40
7.3.260.0100.01316.30
7.3.250.0100.00916.49
7.3.240.0120.00616.52
7.3.230.0030.01616.55
7.3.210.0100.00716.42
7.3.200.0180.00019.39
7.3.190.0090.00916.24
7.3.180.0030.01316.33
7.3.170.0070.01016.52
7.3.160.0070.01016.30
7.3.120.0120.00315.01
7.3.110.0060.01214.71
7.3.100.0000.01414.59
7.3.90.0030.01014.91
7.3.80.0040.01114.77
7.3.70.0090.00014.60
7.3.60.0030.01314.71
7.3.50.0030.01014.90
7.3.40.0030.01014.75
7.3.30.0030.01014.79
7.3.20.0030.00616.38
7.3.10.0030.01316.82
7.3.00.0030.00616.57
7.2.330.0130.01016.34
7.2.320.0120.00616.55
7.2.310.0100.00716.43
7.2.300.0070.01016.64
7.2.290.0110.00616.63
7.2.250.0060.01014.93
7.2.240.0130.00614.84
7.2.230.0000.01015.14
7.2.220.0000.01515.20
7.2.210.0100.00715.01
7.2.200.0000.01114.85
7.2.190.0040.00714.86
7.2.180.0110.00414.93
7.2.170.0100.00314.93
7.2.60.0130.00016.79
7.2.50.0090.00616.66
7.1.330.0080.00815.62
7.1.320.0030.01015.69
7.1.310.0100.00715.84
7.1.300.0040.00415.31
7.1.290.0000.01315.64
7.1.280.0100.00315.82
7.1.270.0030.01015.43
7.1.260.0090.00615.86
7.1.200.0000.01415.77
7.1.70.0080.00017.25
7.1.60.0140.01119.50
7.1.50.0120.01216.96
7.1.00.0100.07022.31
7.0.200.0680.01014.40
7.0.140.0070.07022.00
7.0.60.0030.04319.92
7.0.50.0170.03017.89
7.0.40.0070.05720.11
7.0.30.0370.07720.16
7.0.20.0300.07720.24
7.0.10.0170.05720.23
7.0.00.0200.07020.09
5.6.280.0070.07021.10
5.6.210.0130.03720.75
5.6.200.0000.07318.20
5.6.190.0200.07020.52
5.6.180.0300.06720.41
5.6.170.0330.07020.41
5.6.160.0130.08020.50
5.6.150.0130.08018.29
5.6.140.0130.07718.18
5.6.130.0130.07718.18
5.6.120.0200.07321.12
5.6.110.0170.08020.96
5.6.100.0130.04721.11
5.6.90.0100.08021.10
5.6.80.0070.05320.41
5.6.70.0270.07020.37
5.5.350.0170.07320.32
5.5.340.0030.04317.95
5.5.330.0100.08020.27
5.5.320.0170.08020.28
5.5.310.0200.04320.28
5.5.300.0070.06018.00
5.5.290.0130.03017.95
5.5.280.0030.08320.65
5.5.270.0100.07020.89
5.5.260.0100.05720.80
5.5.250.0070.06720.60
5.5.240.0100.05320.36
5.4.450.0900.05719.43
5.4.440.0770.06319.55
5.4.430.0730.05319.19
5.4.420.0170.05319.45
5.4.410.0800.05319.21
5.4.400.0130.05718.67
5.4.390.0300.05018.75
5.4.380.0170.05718.86
5.4.370.0170.05718.72
5.4.360.0270.04318.74
5.4.350.0200.05718.46
5.4.340.0230.06018.56
5.4.320.0200.05718.75
5.4.310.0170.05718.80
5.4.300.0200.05318.84
5.4.290.0300.04018.59
5.4.280.0170.05718.73
5.4.270.0200.05018.74
5.4.260.0100.06018.79
5.4.250.0270.05018.63
5.4.240.0270.04718.78
5.4.230.0100.06318.82
5.4.220.0230.05318.55
5.4.210.0200.05318.71
5.4.200.0130.05716.80
5.4.190.0230.05018.67
5.4.180.0300.05018.73
5.4.170.0230.05318.77
5.4.160.0200.05718.54
5.4.150.0270.05018.73
5.4.140.0270.04316.24
5.4.130.0330.03716.26
5.4.120.0130.05316.30
5.4.110.0170.05016.21
5.4.100.0100.06016.32
5.4.90.0170.05716.18
5.4.80.0200.05016.24
5.4.70.0170.05016.17
5.4.60.0200.04716.31
5.4.50.0170.05016.30
5.4.40.0170.06016.24
5.4.30.0130.05316.22
5.4.20.0230.04316.17
5.4.10.0170.05016.25
5.4.00.0170.05015.74
5.3.290.0270.05314.71
5.3.280.0370.05714.69
5.3.270.0230.05014.80
5.3.260.0270.04714.62
5.3.250.0200.05014.73
5.3.240.0130.05714.63
5.3.230.0200.05014.65
5.3.220.0130.06014.62
5.3.210.0170.05314.79
5.3.200.0100.06014.55
5.3.190.0330.06014.73
5.3.180.0130.05714.58
5.3.170.0300.06314.59
5.3.160.0170.05714.61
5.3.150.0270.04314.67
5.3.140.0200.05714.57
5.3.130.0170.05714.73
5.3.120.0130.05714.59
5.3.110.0130.06314.73
5.3.100.0270.04314.17
5.3.90.0130.05714.00
5.3.80.0270.04314.24
5.3.70.0170.05014.09
5.3.60.0170.05714.00
5.3.50.0130.05314.05
5.3.40.0170.05014.07
5.3.30.0230.04314.13
5.3.20.0270.04013.71
5.3.10.0170.05013.86
5.3.00.0230.04313.77
5.2.170.0130.04711.14
5.2.160.0170.03711.30
5.2.150.0200.03711.10
5.2.140.0130.04311.05
5.2.130.0170.04011.15
5.2.120.0170.04011.15
5.2.110.0200.04311.14
5.2.100.0100.04311.13
5.2.90.0130.04011.16
5.2.80.0170.04011.02
5.2.70.0100.04311.13
5.2.60.0100.04311.02
5.2.50.0200.03711.06
5.2.40.0130.03710.95
5.2.30.0100.04011.01
5.2.20.0070.04711.03
5.2.10.0170.03310.91
5.2.00.0130.04010.87
5.1.60.0070.03710.03
5.1.50.0130.0339.96
5.1.40.0100.03310.00
5.1.30.0100.03710.36
5.1.20.0230.02710.36
5.1.10.0070.04010.16
5.1.00.0130.03310.08
5.0.50.0030.0338.56
5.0.40.0070.0338.42
5.0.30.0200.0338.28
5.0.20.0130.0238.21
5.0.10.0030.0308.14
5.0.00.0100.0378.15
4.4.90.0030.0236.64
4.4.80.0030.0236.64
4.4.70.0070.0206.64
4.4.60.0030.0236.64
4.4.50.0100.0176.64
4.4.40.0030.0376.64
4.4.30.0030.0236.64
4.4.20.0070.0206.64
4.4.10.0070.0236.64
4.4.00.0000.0406.64
4.3.110.0100.0176.64
4.3.100.0070.0206.64
4.3.90.0130.0176.64
4.3.80.0070.0376.64
4.3.70.0000.0276.64
4.3.60.0100.0176.64
4.3.50.0100.0176.64
4.3.40.0030.0376.64
4.3.30.0070.0206.64
4.3.20.0130.0136.64
4.3.10.0030.0236.64
4.3.00.0130.0206.57

preferences:
99.83 ms | 401 KiB | 5 Q