3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct($options = null) { if (is_array($options)) { var_dump(is_string(key($options))); } } } $options = array('foo' => 'bar'); next($options); next($options); $foo = new Foo($options);

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.120.0060.00918.70
8.3.110.0080.00016.62
8.3.100.0080.00024.06
8.3.90.0030.00826.77
8.3.80.0030.00617.97
8.3.70.0090.01316.38
8.3.60.0100.00716.50
8.3.50.0130.00521.08
8.3.40.0150.00018.71
8.3.30.0150.00018.58
8.3.20.0050.00319.94
8.3.10.0000.00820.40
8.3.00.0000.00823.55
8.2.240.0060.01017.02
8.2.230.0120.00420.94
8.2.220.0050.00537.54
8.2.210.0000.00826.77
8.2.200.0030.00618.54
8.2.190.0110.01118.41
8.2.180.0110.00616.50
8.2.170.0040.01122.96
8.2.160.0100.00320.43
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0100.01021.00
8.2.120.0040.00426.35
8.2.110.0110.00622.11
8.2.100.0040.00817.66
8.2.90.0000.00817.72
8.2.80.0000.00819.11
8.2.70.0100.00017.91
8.2.60.0050.00317.79
8.2.50.0030.00618.10
8.2.40.0020.00520.47
8.2.30.0050.00319.14
8.2.20.0040.00417.84
8.2.10.0000.00717.93
8.2.00.0070.00017.55
8.1.300.0060.00319.53
8.1.290.0060.00330.84
8.1.280.0030.01025.92
8.1.270.0090.00023.83
8.1.260.0080.00028.09
8.1.250.0050.00228.09
8.1.240.0050.00522.11
8.1.230.0030.00920.97
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0030.00617.00
8.1.180.0050.00218.10
8.1.170.0090.00018.50
8.1.160.0000.00722.08
8.1.150.0050.00318.71
8.1.140.0000.00719.36
8.1.130.0070.00017.68
8.1.120.0030.00317.38
8.1.110.0040.00417.27
8.1.100.0000.00717.39
8.1.90.0000.00717.43
8.1.80.0070.00017.27
8.1.70.0050.00217.38
8.1.60.0040.00417.54
8.1.50.0000.00717.50
8.1.40.0040.00417.54
8.1.30.0040.00417.71
8.1.20.0020.00517.52
8.1.10.0080.00017.58
8.1.00.0050.00217.52
8.0.300.0080.00020.07
8.0.290.0040.00416.60
8.0.280.0030.00318.44
8.0.270.0030.00317.11
8.0.260.0000.00617.24
8.0.250.0000.00716.79
8.0.240.0000.00816.82
8.0.230.0030.00316.79
8.0.220.0070.00016.82
8.0.210.0000.00716.79
8.0.200.0030.00316.95
8.0.190.0030.00516.87
8.0.180.0040.00416.74
8.0.170.0030.00516.87
8.0.160.0040.00416.82
8.0.150.0000.00716.75
8.0.140.0050.00216.74
8.0.130.0000.00513.33
8.0.120.0000.00716.66
8.0.110.0000.00716.73
8.0.100.0000.00816.88
8.0.90.0000.00716.87
8.0.80.0100.00716.77
8.0.70.0000.00916.82
8.0.60.0040.00416.94
8.0.50.0080.00016.86
8.0.30.0080.01017.09
8.0.20.0080.01117.40
8.0.10.0070.00016.76
8.0.00.0150.00816.59
7.4.330.0000.00515.08
7.4.320.0060.00016.45
7.4.300.0000.00716.55
7.4.290.0070.00016.51
7.4.280.0070.00016.49
7.4.270.0030.00316.54
7.4.260.0000.00716.51
7.4.250.0040.00416.45
7.4.240.0080.00016.44
7.4.230.0040.00416.31
7.4.220.0000.01816.61
7.4.210.0050.01116.53
7.4.200.0000.00716.62
7.4.160.0100.00616.54
7.4.150.0100.00717.40
7.4.140.0100.01217.86
7.4.130.0100.00616.44
7.4.120.0160.00516.50
7.4.110.0070.01616.47
7.4.100.0140.00616.50
7.4.90.0080.00816.44
7.4.80.0120.00719.39
7.4.70.0130.00316.37
7.4.60.0080.00816.38
7.4.50.0090.00216.52
7.4.40.0130.00316.45
7.4.30.0040.01516.68
7.4.00.0040.01414.93
7.3.330.0050.00013.25
7.3.320.0050.00013.31
7.3.310.0000.00716.12
7.3.300.0030.00316.19
7.3.290.0000.00716.24
7.3.280.0100.00916.19
7.3.270.0170.00317.40
7.3.260.0130.00516.40
7.3.250.0120.00516.23
7.3.240.0110.00516.30
7.3.230.0030.01316.39
7.3.210.0110.00516.23
7.3.200.0100.00716.29
7.3.190.0090.00616.45
7.3.180.0070.01316.32
7.3.170.0120.01816.54
7.3.160.0040.01216.11
7.3.10.0130.00616.24
7.3.00.0150.00516.18
7.2.330.0150.00316.30
7.2.320.0120.01216.61
7.2.310.0110.00616.48
7.2.300.0090.00716.38
7.2.290.0060.00916.50
7.2.130.0120.01016.68
7.2.120.0180.00416.37
7.2.110.0110.01016.47
7.2.100.0160.00716.69
7.2.90.0150.00616.63
7.2.80.0130.00816.60
7.2.70.0130.00816.93
7.2.60.0070.00716.72
7.2.50.0100.00816.63
7.2.40.0130.00916.39
7.2.30.0100.00716.59
7.2.20.0090.00716.46
7.2.10.0090.00916.42
7.2.00.0050.01017.56
7.1.250.0080.00815.43
7.1.240.0100.00315.73
7.1.230.0120.00315.45
7.1.220.0060.00915.46
7.1.210.0090.00615.67
7.1.200.0070.00915.79
7.1.190.0070.00715.59
7.1.180.0030.01015.64
7.1.170.0130.00315.41
7.1.160.0100.00315.59
7.1.150.0100.00715.54
7.1.140.0100.00615.61
7.1.130.0100.00315.79
7.1.120.0120.00315.85
7.1.110.0000.01615.62
7.1.100.0120.00317.00
7.1.90.0070.00715.56
7.1.80.0100.00715.53
7.1.70.0050.00616.24
7.1.60.0080.00516.21
7.1.50.0100.00816.15
7.1.40.0070.01015.75
7.1.30.0090.00915.45
7.1.20.0110.00415.73
7.1.10.0040.01415.48
7.1.00.0070.04218.95
7.0.330.0080.00415.24
7.0.320.0100.00315.22
7.0.310.0140.00315.18
7.0.300.0070.00715.39
7.0.290.0090.00915.28
7.0.280.0100.00715.20
7.0.270.0080.00815.34
7.0.260.0040.00815.30
7.0.250.0070.01015.38
7.0.240.0120.00315.34
7.0.230.0040.01215.04
7.0.220.0110.00615.22
7.0.210.0070.01015.48
7.0.200.0140.00715.06
7.0.190.0060.00915.23
7.0.180.0160.00315.24
7.0.170.0110.00715.30
7.0.160.0100.00315.13
7.0.150.0100.01015.32
7.0.140.0140.00415.02
7.0.130.0150.00315.55
7.0.120.0060.04118.67
7.0.110.0030.03518.47
7.0.100.0030.04118.65
7.0.90.0080.04018.79
7.0.80.0050.04118.72
7.0.70.0050.03518.73
7.0.60.0130.03518.63
7.0.50.0050.04218.61
7.0.40.0030.04017.62
7.0.30.0070.03917.69
7.0.20.0030.04117.63
7.0.10.0050.03817.73
7.0.00.0020.04317.73
5.6.380.0030.00614.23
5.6.370.0000.00914.21
5.6.360.0000.01314.14
5.6.350.0040.00814.15
5.6.340.0030.01014.13
5.6.330.0090.00613.86
5.6.320.0060.00914.12
5.6.310.0110.00413.89
5.6.300.0150.00014.38
5.6.290.0100.00314.13
5.6.280.0040.00414.26
5.6.270.0000.01114.25
5.6.260.0000.03817.77
5.6.250.0100.03317.52
5.6.240.0010.04317.71
5.6.230.0070.04017.61
5.6.220.0030.04317.69
5.6.210.0080.03817.55
5.6.200.0070.04017.27
5.6.190.0070.03817.56
5.6.180.0010.04017.46
5.6.170.0030.04017.56
5.6.160.0030.04217.52
5.6.150.0060.04117.64
5.6.140.0020.04417.46
5.6.130.0050.04117.55
5.6.120.0080.03817.58
5.6.110.0070.04017.44
5.6.100.0010.04417.45
5.6.90.0050.03917.63
5.6.80.0030.03817.18
5.6.70.0110.03517.25
5.6.60.0050.03517.33
5.6.50.0030.03817.07
5.6.40.0090.03517.13
5.6.30.0080.03817.28
5.6.20.0040.04217.26
5.6.10.0030.04117.25
5.6.00.0050.03717.29

preferences:
28.62 ms | 403 KiB | 5 Q