3v4l.org

run code in 300+ PHP versions simultaneously
<?php //example data from db: $user = ['store_id' => '99', 'store_name' => 'konrados']; //easier way to output it: echo "<option value = '{$user['store_id']}'>{$user['store_name']}</option>"; // easier easier way ?> <option value="<?= $user['store_id'] ?>"><?= $user['store_name'] ?></option> <?php // easier easier way with no XSS risk ?> <option value="<?= (int) $user['store_id'] ?>"><?= htmlspecialchars($user['store_name']) ?></option>

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.0140.00418.06
8.3.50.0040.01118.21
8.3.40.0080.00818.72
8.3.30.0120.00318.57
8.3.20.0040.00419.02
8.3.10.0000.00821.60
8.3.00.0050.00323.63
8.2.180.0060.01318.16
8.2.170.0100.00622.96
8.2.160.0110.00719.31
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.13
8.2.120.0080.00026.35
8.2.110.0060.00322.24
8.2.100.0030.00918.03
8.2.90.0030.00519.39
8.2.80.0050.00517.97
8.2.70.0040.00417.93
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0040.00419.47
8.2.30.0070.00019.30
8.2.20.0040.00417.98
8.2.10.0000.00719.92
8.2.00.0050.00319.44
8.1.280.0180.00025.92
8.1.270.0070.00022.16
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00021.00
8.1.230.0070.00420.98
8.1.220.0000.00817.74
8.1.210.0040.00718.88
8.1.200.0060.00317.23
8.1.190.0030.00517.13
8.1.180.0030.00518.10
8.1.170.0000.00818.79
8.1.160.0020.00518.72
8.1.150.0070.00018.86
8.1.140.0000.00817.67
8.1.130.0030.00319.00
8.1.120.0070.00017.43
8.1.110.0070.00017.26
8.1.100.0040.00417.43
8.1.90.0000.00717.45
8.1.80.0040.00417.43
8.1.70.0000.00717.46
8.1.60.0090.00017.64
8.1.50.0000.00817.46
8.1.40.0030.00517.52
8.1.30.0050.00317.55
8.1.20.0050.00217.57
8.1.10.0030.00617.47
8.1.00.0000.00817.33
8.0.300.0050.00319.90
8.0.290.0030.00516.75
8.0.280.0080.00018.45
8.0.270.0040.00417.25
8.0.260.0030.00317.23
8.0.250.0030.00316.93
8.0.240.0030.00316.98
8.0.230.0030.00316.82
8.0.220.0000.00716.85
8.0.210.0030.00316.76
8.0.200.0060.00016.85
8.0.190.0070.00016.98
8.0.180.0040.00416.81
8.0.170.0070.00316.77
8.0.160.0030.00316.95
8.0.150.0000.00816.81
8.0.140.0040.00416.88
8.0.130.0030.00313.31
8.0.120.0050.00316.81
8.0.110.0040.00416.89
8.0.100.0040.00416.75
8.0.90.0000.00716.83
8.0.80.0100.01016.86
8.0.70.0000.00716.72
8.0.60.0040.00417.00
8.0.50.0000.00816.82
8.0.30.0120.00616.99
8.0.20.0150.00717.40
8.0.10.0040.00416.87
8.0.00.0080.01216.63
7.4.330.0020.00215.55
7.4.320.0030.00316.51
7.4.300.0030.00316.41
7.4.290.0000.00616.42
7.4.280.0040.00416.55
7.4.270.0000.00716.50
7.4.260.0000.00716.47
7.4.250.0000.00716.47
7.4.240.0070.00016.49
7.4.230.0000.00716.38
7.4.220.0080.00016.68
7.4.210.0060.01016.54
7.4.200.0000.00716.49
7.4.160.0050.01116.41
7.4.140.0110.01317.86
7.4.130.0160.00316.55
7.4.120.0100.00916.60
7.4.110.0110.00616.40
7.4.100.0100.00716.50
7.4.90.0180.00316.29
7.4.80.0170.00419.39
7.4.70.0100.00716.41
7.4.60.0070.01616.31
7.4.50.0030.01016.55
7.4.40.0200.00316.59
7.4.00.0140.00014.83
7.3.330.0030.00313.09
7.3.320.0000.00613.06
7.3.310.0050.00316.09
7.3.300.0000.00716.20
7.3.290.0040.00416.21
7.3.280.0080.00616.16
7.3.260.0070.01116.32
7.3.240.0090.01016.40
7.3.230.0090.01016.21
7.3.210.0150.00916.29
7.3.200.0100.00616.13
7.3.190.0040.01216.60
7.3.180.0100.00716.34
7.3.170.0120.01216.40
7.3.160.0030.01316.30
7.3.10.0070.00616.55
7.3.00.0030.00716.45
7.2.330.0140.01016.69
7.2.320.0100.01016.80
7.2.310.0100.01016.74
7.2.300.0100.00716.47
7.2.290.0160.00716.72
7.2.130.0050.00516.99
7.2.120.0120.00316.64
7.2.110.0070.00616.84
7.2.100.0030.01016.86
7.2.90.0060.00516.76
7.2.80.0030.01016.84
7.2.70.0170.00716.33
7.2.60.0200.00716.36
7.2.50.0180.01116.20
7.2.40.0190.01016.18
7.2.30.0230.00816.15
7.2.20.0180.00916.15
7.2.10.0180.00816.20
7.2.00.0170.00816.14
7.1.250.0020.01115.79
7.1.200.0040.00715.57
7.1.170.0470.00913.79
7.1.160.0450.00613.80
7.1.150.0460.01313.85
7.1.140.0360.01313.86
7.1.130.0360.00613.77
7.1.120.0500.01013.69
7.1.110.0430.00613.79
7.1.100.0430.00713.60
7.1.90.0490.00713.89
7.1.80.0290.01013.95
7.1.70.0300.01014.06
7.1.60.0590.01031.62
7.1.50.0760.00731.77
7.1.40.0540.01031.73
7.1.30.2130.01031.89
7.1.20.0450.01631.78
7.1.10.0450.00013.83
7.1.00.0370.00713.94

preferences:
59.33 ms | 401 KiB | 5 Q