3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vars = array( true, false, null, 'string', array(), array(1),array(1, 2, 3), new stdClass() ); foreach ($vars as $var) { echo "------------\r"; var_export($var); echo "\r"; echo "!empty() = "; var_dump(!empty($var)); echo "count() = "; var_dump(count($var)); }

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.4.20.0030.00619.82
8.4.10.0090.00019.66
8.3.150.0110.00817.36
8.3.140.0140.00019.04
8.3.130.0000.00918.39
8.3.120.0040.01618.89
8.3.110.0090.00320.94
8.3.100.0160.00324.06
8.3.90.0040.01126.77
8.3.80.0060.00317.97
8.3.70.0040.01218.56
8.3.60.0180.00418.43
8.3.50.0170.00917.38
8.3.40.0070.00718.71
8.3.30.0120.00318.70
8.3.20.0000.00820.34
8.3.10.0050.00321.07
8.3.00.0040.00418.89
8.2.260.0110.00717.22
8.2.250.0080.00016.73
8.2.240.0040.00418.73
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0040.01126.77
8.2.200.0060.00316.88
8.2.190.0040.01116.58
8.2.180.0100.00316.50
8.2.170.0070.00722.96
8.2.160.0140.00020.34
8.2.150.0000.00824.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00720.93
8.2.110.0080.00020.52
8.2.100.0060.00617.91
8.2.90.0030.00617.75
8.2.80.0050.00318.73
8.2.70.0060.00317.63
8.2.60.0040.00417.63
8.2.50.0040.00417.75
8.2.40.0060.00322.27
8.2.30.0030.00519.21
8.2.20.0070.00017.93
8.2.10.0040.00418.14
8.2.00.0040.00418.08
8.1.310.0030.00616.87
8.1.300.0000.01619.58
8.1.290.0060.00318.88
8.1.280.0110.00725.92
8.1.270.0050.00222.13
8.1.260.0080.00026.35
8.1.250.0140.00028.09
8.1.240.0100.00019.26
8.1.230.0070.00320.77
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0080.00017.53
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0000.00719.03
8.1.150.0050.00218.91
8.1.140.0000.00719.48
8.1.130.0050.00318.91
8.1.120.0070.00017.48
8.1.110.0000.00717.38
8.1.100.0050.00317.50
8.1.90.0020.00517.45
8.1.80.0000.00917.36
8.1.70.0050.00217.48
8.1.60.0040.00417.55
8.1.50.0040.00417.53
8.1.40.0000.00717.39
8.1.30.0050.00317.64
8.1.20.0040.00417.64
8.1.10.0040.00417.50
8.1.00.0060.00317.41
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.48
8.0.270.0000.00817.14
8.0.260.0030.00319.01
8.0.250.0030.00317.03
8.0.240.0040.00416.90
8.0.230.0040.00417.05
8.0.220.0070.00016.98
8.0.210.0030.00316.93
8.0.200.0030.00317.02
8.0.190.0000.00817.04
8.0.180.0000.00716.89
8.0.170.0070.00317.01
8.0.160.0000.00717.05
8.0.150.0050.00316.80
8.0.140.0070.00416.93
8.0.130.0060.00013.40
8.0.120.0040.00416.98
8.0.110.0040.00416.79
8.0.100.0080.00016.92
8.0.90.0000.00716.79
8.0.80.0040.01116.99
8.0.70.0000.00716.84
8.0.60.0050.00216.88
8.0.50.0040.00416.84
8.0.30.0130.00917.14
8.0.20.0120.00917.42
8.0.10.0040.00416.95
8.0.00.0150.00716.48
7.4.330.0050.00015.55
7.4.320.0000.00716.64
7.4.300.0030.00316.56
7.4.290.0030.00616.49
7.4.280.0050.00316.38
7.4.270.0030.00316.63
7.4.260.0030.00616.64
7.4.250.0000.00816.60
7.4.240.0030.00416.62
7.4.230.0000.00716.43
7.4.220.0330.01116.38
7.4.210.0040.01016.62
7.4.200.0000.00716.64
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0080.01116.55
7.4.120.0100.01116.52
7.4.110.0140.00416.50
7.4.100.0130.00316.37
7.4.90.0090.00916.46
7.4.80.0100.01319.39
7.4.70.0070.01116.53
7.4.60.0000.01616.62
7.4.50.0070.00716.57
7.4.40.0100.00716.68
7.4.30.0030.01416.57
7.4.00.0120.00414.91
7.3.330.0050.00313.06
7.3.320.0030.00313.10
7.3.310.0030.00616.26
7.3.300.0000.00716.22
7.3.290.0050.00916.34
7.3.280.0110.00616.33
7.3.270.0110.00717.40
7.3.260.0050.01316.55
7.3.250.0080.00916.49
7.3.240.0090.00816.36
7.3.230.0070.01016.48
7.3.210.0100.00716.44
7.3.200.0090.00816.64
7.3.190.0110.00516.45
7.3.180.0140.00316.39
7.3.170.0060.01116.55
7.3.160.0090.00616.45
7.3.10.0000.01216.86
7.3.00.0030.01016.52
7.2.330.0100.00716.74
7.2.320.0030.01516.48
7.2.310.0070.01016.48
7.2.300.0130.00816.34
7.2.290.0100.00716.41
7.2.130.0100.00017.04
7.2.120.0040.01116.64
7.2.110.0040.00416.98
7.2.100.0000.01316.75
7.2.90.0100.00316.80
7.2.80.0150.00016.97
7.2.70.0090.00617.09
7.2.60.0020.01016.94
7.2.50.0030.00717.06
7.2.40.0090.00616.94
7.2.30.0080.00416.81
7.2.20.0030.00716.90
7.2.10.0070.00416.93
7.2.00.0030.00717.02
7.1.250.0110.00315.76
7.1.200.0030.00715.63
7.1.70.1330.01015.39
7.1.60.1480.01335.08
7.1.50.1430.01034.85
7.1.40.1190.01334.30
7.1.30.0170.00934.48
7.1.20.0190.00934.54
7.1.10.0090.00316.29
7.1.00.1240.01016.54
7.0.200.1430.00714.99
7.0.190.1290.00314.71
7.0.180.1150.00714.27
7.0.170.1220.01314.59
7.0.160.1220.01016.19
7.0.150.0050.01016.26
7.0.140.1270.00714.61
7.0.130.0110.00716.54
7.0.120.0170.00016.51
7.0.110.0070.00716.50
7.0.100.0050.00816.34
7.0.90.0090.00316.34
7.0.80.0030.00916.22
7.0.70.0030.01216.31
7.0.60.0040.00816.14
7.0.50.0060.00616.24
7.0.40.0060.00616.39
7.0.30.0060.00616.34
7.0.20.0060.00616.18
7.0.10.0030.00916.46
7.0.00.0080.00416.48

preferences:
31.49 ms | 403 KiB | 5 Q