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.0130.00618.43
8.3.50.0040.01118.04
8.3.40.0110.00318.55
8.3.30.0120.00318.57
8.3.20.0040.00420.73
8.3.10.0040.00422.08
8.3.00.0080.00023.61
8.2.180.0130.00618.29
8.2.170.0070.01022.96
8.2.160.0070.01019.41
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00821.00
8.2.120.0040.00426.35
8.2.110.0100.00021.00
8.2.100.0070.00417.91
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0000.00917.93
8.2.60.0040.00417.80
8.2.50.0050.00318.10
8.2.40.0080.00019.46
8.2.30.0050.00219.19
8.2.20.0050.00218.05
8.2.10.0030.00519.72
8.2.00.0030.00619.23
8.1.280.0110.00725.92
8.1.270.0070.00022.16
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.80
8.1.230.0000.01118.70
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0040.00417.13
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0030.00618.86
8.1.160.0040.00418.82
8.1.150.0040.00418.68
8.1.140.0040.00417.68
8.1.130.0070.00019.08
8.1.120.0030.00317.41
8.1.110.0030.00317.42
8.1.100.0030.00317.47
8.1.90.0050.00317.31
8.1.80.0030.00617.35
8.1.70.0030.00317.43
8.1.60.0030.00617.54
8.1.50.0080.00017.46
8.1.40.0050.00217.57
8.1.30.0090.00017.66
8.1.20.0000.00717.66
8.1.10.0000.00817.52
8.1.00.0050.00317.35
8.0.300.0040.00418.78
8.0.290.0030.00616.63
8.0.280.0000.00918.43
8.0.270.0000.00717.25
8.0.260.0040.00417.24
8.0.250.0000.00716.91
8.0.240.0030.00316.86
8.0.230.0030.00316.92
8.0.220.0000.00716.75
8.0.210.0050.00216.89
8.0.200.0000.00716.86
8.0.190.0040.00416.79
8.0.180.0060.00316.89
8.0.170.0040.00416.86
8.0.160.0030.00316.91
8.0.150.0000.01116.83
8.0.140.0000.00716.85
8.0.130.0060.00013.34
8.0.120.0000.00716.85
8.0.110.0000.00716.82
8.0.100.0070.00016.71
8.0.90.0000.00716.73
8.0.80.0090.01116.85
8.0.70.0000.00716.66
8.0.60.0040.00416.85
8.0.50.0000.00716.72
8.0.30.0110.00917.17
8.0.20.0080.01117.40
8.0.10.0030.00516.91
8.0.00.0120.00716.71
7.4.330.0060.00015.55
7.4.320.0030.00316.41
7.4.300.0030.00316.48
7.4.290.0070.00016.40
7.4.280.0050.00216.47
7.4.270.0030.00316.60
7.4.260.0070.00016.51
7.4.250.0030.00316.51
7.4.240.0000.00716.63
7.4.230.0030.00316.52
7.4.220.0030.00616.47
7.4.210.0090.00816.63
7.4.200.0030.00316.39
7.4.160.0080.00816.41
7.4.140.0100.00817.86
7.4.130.0130.00816.44
7.4.120.0100.01016.51
7.4.110.0070.01116.60
7.4.100.0070.01016.52
7.4.90.0120.01216.36
7.4.80.0090.01519.39
7.4.70.0040.01316.50
7.4.60.0070.01016.50
7.4.50.0100.00716.47
7.4.40.0100.01316.36
7.4.10.0090.01015.63
7.4.00.0070.00915.55
7.3.330.0030.00313.24
7.3.320.0000.00613.09
7.3.310.0040.00416.19
7.3.300.0000.00716.15
7.3.290.0060.00016.11
7.3.280.0110.00516.21
7.3.260.0060.01116.43
7.3.240.0070.01016.37
7.3.230.0080.00816.25
7.3.210.0090.00916.60
7.3.200.0170.00316.20
7.3.190.0120.00516.14
7.3.180.0060.01016.44
7.3.170.0020.00216.55
7.3.160.0100.01016.23
7.3.130.0030.01515.39
7.3.120.0030.01415.58
7.3.110.0080.01015.61
7.3.100.0080.00515.57
7.3.90.0080.00815.58
7.3.80.0100.00415.55
7.3.70.0080.00715.48
7.3.60.0060.00815.47
7.3.50.0030.00915.45
7.3.40.0070.00915.47
7.3.30.0080.00815.53
7.3.20.0060.00917.39
7.3.10.0080.00716.97
7.3.00.0090.00516.94
7.2.330.0150.00916.33
7.2.320.0040.01716.43
7.2.310.0090.01416.63
7.2.300.0100.01316.55
7.2.290.0090.01416.58
7.2.260.0070.01215.62
7.2.250.0090.01015.79
7.2.240.0060.00815.77
7.2.230.0050.00615.88
7.2.220.0090.00515.89
7.2.210.0050.01015.90
7.2.200.0090.00315.72
7.2.190.0110.00415.62
7.2.180.0070.01015.63
7.2.170.0110.00515.85
7.2.160.0050.00915.71
7.2.150.0080.00617.73
7.2.140.0070.00817.61
7.2.130.0090.00317.26
7.2.120.0050.00917.26
7.2.110.0050.00817.19
7.2.100.0070.00817.16
7.2.90.0070.00517.15
7.2.80.0100.00717.10
7.2.70.0110.00716.71
7.2.60.0160.00816.76
7.2.50.0130.01316.65
7.2.40.0150.00616.71
7.2.30.0130.01016.79
7.2.20.0130.00616.66
7.2.10.0110.00816.60
7.2.00.0160.00916.78
7.1.330.0060.00816.53
7.1.320.0000.01216.48
7.1.310.0090.00516.55
7.1.300.0070.00716.59
7.1.290.0110.00116.59
7.1.280.0060.00816.55
7.1.270.0120.00316.54
7.1.260.0070.00716.42
7.1.250.0070.00716.20
7.1.240.0060.01016.42
7.1.230.0050.00716.46
7.1.220.0070.00716.55
7.1.210.0050.00716.55
7.1.200.0040.00816.25
7.1.190.0070.00716.48
7.1.180.0080.00616.69
7.1.170.0130.00815.46
7.1.160.0170.00615.39
7.1.150.0140.00715.65
7.1.140.0100.01015.73
7.1.130.0170.00915.58
7.1.120.0190.00815.69
7.1.110.0180.00515.58
7.1.100.0200.00815.62
7.1.90.0140.00815.68
7.1.80.0130.00915.60
7.1.70.0180.00515.65
7.1.60.0200.00721.54
7.1.50.0200.00821.74
7.1.40.0180.01021.51
7.1.30.0510.01221.70
7.1.20.0180.00821.60
7.1.10.0100.01015.58
7.1.00.0140.00815.57
7.0.330.0120.00316.09
7.0.320.0010.01116.13
7.0.310.0020.01216.20
7.0.300.0050.01015.84
7.0.290.0020.01116.05
7.0.280.0030.00916.14
7.0.270.0090.00216.16
7.0.260.0050.01116.15
7.0.250.0020.01316.23
7.0.240.0010.01016.26
7.0.230.0070.00716.14
7.0.220.0080.00316.16
7.0.210.0070.00816.16
7.0.200.0030.00616.16
7.0.190.0050.00716.03
7.0.180.0080.00516.11
7.0.170.0050.00716.23
7.0.160.0050.01216.21
7.0.150.0020.00916.06
7.0.140.0070.00516.18
7.0.130.0010.01216.22
7.0.120.0060.00716.27
7.0.110.0090.00516.14
7.0.100.0040.01016.13
7.0.90.0080.00415.96
7.0.80.0040.00616.17
7.0.70.0030.00616.08
7.0.60.0060.00616.17
7.0.50.0070.00516.23
7.0.40.0110.00614.22
7.0.30.0040.00814.13
7.0.20.0050.00514.14
7.0.10.0100.00314.12
7.0.00.0070.00914.01
5.6.400.0050.01115.13
5.6.390.0080.00815.07
5.6.380.0060.00315.12
5.6.370.0060.00615.21
5.6.360.0030.01014.97
5.6.350.0030.00815.28
5.6.340.0050.00915.19
5.6.330.0050.01015.12
5.6.320.0110.00815.21
5.6.310.0100.00315.21
5.6.300.0030.01015.22
5.6.290.0050.00615.31
5.6.280.0030.01215.26
5.6.270.0030.00615.12
5.6.260.0110.00015.22
5.6.250.0070.00715.18
5.6.240.0080.00415.07
5.6.230.0040.01015.13
5.6.220.0050.00915.11
5.6.210.0080.00415.13
5.6.200.0040.01115.07
5.6.190.0100.00515.09
5.6.180.0040.01015.15
5.6.170.0060.00815.18
5.6.160.0040.00915.09
5.6.150.0030.01215.03
5.6.140.0060.00915.34
5.6.130.0030.01215.19
5.6.120.0070.00315.20
5.6.110.0070.01015.07
5.6.100.0030.01015.16
5.6.90.0030.01015.13
5.6.80.0050.00914.89
5.6.70.0030.00815.05
5.6.60.0030.01014.93
5.6.50.0080.00315.13
5.6.40.0030.00915.00
5.6.30.0040.00614.91
5.6.20.0030.01015.06
5.6.10.0030.01015.06
5.6.00.0050.00815.05

preferences:
61.96 ms | 400 KiB | 5 Q