3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array('iso'=>'A3+', 'height'=>329, 'width'=>483, 'descrip'=>'A3+ (329 x 483 mm)'), array('iso'=>'A3_EXTRA', 'height'=>322, 'width'=>445, 'descrip'=>'A3 EXTRA (322 x 445 mm)'), array('iso'=>'A3_SUPER', 'height'=>305, 'width'=>508, 'descrip'=>'A3 SUPER (305 x 508 mm)'), array('iso'=>'SUPER_A3', 'height'=>305, 'width'=>487, 'descrip'=>'SUPER A3 (305 x 487 mm)'), array('iso'=>'A4_EXTRA', 'height'=>235, 'width'=>322, 'descrip'=>'A4 EXTRA (235 x 322 mm)'), array('iso'=>'A4_SUPER', 'height'=>229, 'width'=>322, 'descrip'=>'A4 SUPER (229 x 322 mm)'), array('iso'=>'SUPER_A4', 'height'=>227, 'width'=>356, 'descrip'=>'SUPER A4 (227 x 356 mm)'), array('iso'=>'A4_LONG', 'height'=>210, 'width'=>348, 'descrip'=>'A4 LONG (210 x 348 mm)'), array('iso'=>'F4', 'height'=>210, 'width'=>330, 'descrip'=>'F4 (210 x 330 mm)'), array('iso'=>'SO_B5_EXTRA', 'height'=>202, 'width'=>276, 'descrip'=>'SO B5 EXTRA (202 x 276 mm)'), array('iso'=>'A5_EXTRA', 'height'=>173, 'width'=>235, 'descrip'=>'A5 EXTRA (173 x 235 mm)'), array('iso'=>'ANSI_E', 'height'=>863.6, 'width'=>1117.6, 'descrip'=>'ANSI E (863.6 x 1117.6 mm)'), array('iso'=>'ANSI_D', 'height'=>558.8, 'width'=>863.6, 'descrip'=>'ANSI D (558.8 x 863.6 mm)'), array('iso'=>'ANSI_C', 'height'=>431.8, 'width'=>558.8, 'descrip'=>'ANSI C (431.8 x 558.8 mm)'), array('iso'=>'ANSI_B', 'height'=>279.4, 'width'=>431.8, 'descrip'=>'ANSI B (279.4 x 431.8 mm)'), array('iso'=>'ANSI_A', 'height'=>215.9, 'width'=>279.4, 'descrip'=>'ANSI A (215.9 x 279.4 mm)'), ); $filter = "A4"; $filt = array_filter($arr, function($e) { strcasecmp(substr($e['iso'], 0, strlen($filter)), $filter) === 0; }); var_dump($filt);

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.0070.00718.64
8.3.50.0100.01321.02
8.3.40.0090.01219.02
8.3.30.0070.00719.09
8.3.20.0000.00820.16
8.3.10.0030.00521.64
8.3.00.0040.00419.02
8.2.180.0130.00618.38
8.2.170.0100.00322.96
8.2.160.0100.00720.35
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0060.00321.17
8.2.110.0100.00022.29
8.2.100.0040.00818.03
8.2.90.0080.00018.06
8.2.80.0040.00419.29
8.2.70.0050.00317.89
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0040.00419.30
8.2.30.0050.00319.26
8.2.20.0040.00417.77
8.2.10.0040.00418.07
8.2.00.0040.00417.71
8.1.280.0140.00325.92
8.1.270.0060.00318.87
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0140.00320.74
8.1.230.0080.00320.95
8.1.220.0000.00817.76
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.48
8.1.180.0030.00618.10
8.1.170.0000.00818.61
8.1.160.0030.00620.34
8.1.150.0040.00418.82
8.1.140.0000.00817.39
8.1.130.0000.00817.73
8.1.120.0030.00317.55
8.1.110.0030.00517.47
8.1.100.0000.00717.36
8.1.90.0070.00017.43
8.1.80.0040.00417.50
8.1.70.0070.00017.47
8.1.60.0040.00417.64
8.1.50.0030.00617.55
8.1.40.0040.00417.44
8.1.30.0000.00817.67
8.1.20.0040.00417.63
8.1.10.0040.00417.61
8.1.00.0050.00517.54
8.0.300.0070.00020.13
8.0.290.0050.00316.63
8.0.280.0070.00018.40
8.0.270.0000.00717.28
8.0.260.0000.00617.23
8.0.250.0070.00016.89
8.0.240.0050.00316.92
8.0.230.0000.00717.02
8.0.220.0040.00416.90
8.0.210.0050.00216.88
8.0.200.0000.00716.89
8.0.190.0030.00516.97
8.0.180.0070.00016.86
8.0.170.0000.00816.98
8.0.160.0030.00317.03
8.0.150.0040.00416.91
8.0.140.0030.00516.84
8.0.130.0000.00613.30
8.0.120.0040.00416.98
8.0.110.0030.00516.88
8.0.100.0040.00416.95
8.0.90.0000.00716.98
8.0.80.0100.00517.00
8.0.70.0040.00417.03
8.0.60.0080.00016.97
8.0.50.0000.00716.88
8.0.30.0100.01317.14
8.0.20.0160.00917.40
8.0.10.0000.00717.19
8.0.00.0110.00816.82
7.4.330.0000.00515.15
7.4.320.0060.00016.63
7.4.300.0060.00016.58
7.4.290.0060.00316.61
7.4.280.0000.00716.61
7.4.270.0000.00716.53
7.4.260.0000.00716.57
7.4.250.0070.00016.63
7.4.240.0030.00416.57
7.4.230.0070.00016.55
7.4.220.0060.01216.51
7.4.210.0090.01216.57
7.4.200.0070.00016.36
7.4.160.0130.00416.49
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0100.01016.51
7.4.120.0110.00616.53
7.4.110.0130.01016.47
7.4.100.0070.01116.43
7.4.90.0140.00516.52
7.4.80.0120.00819.39
7.4.70.0090.00916.64
7.4.60.0080.00816.57
7.4.50.0040.00416.68
7.4.40.0120.00616.55
7.4.30.0140.00916.71
7.4.00.0040.01215.15
7.3.330.0080.00013.14
7.3.320.0070.00013.18
7.3.310.0020.00516.42
7.3.300.0000.00716.24
7.3.290.0080.00616.40
7.3.280.0070.00916.37
7.3.270.0120.00617.40
7.3.260.0200.00416.59
7.3.250.0120.00716.44
7.3.240.0070.01116.66
7.3.230.0110.00616.49
7.3.210.0030.01316.52
7.3.200.0140.00419.39
7.3.190.0060.01016.37
7.3.180.0110.00616.66
7.3.170.0100.00716.48
7.3.160.0090.01516.45
7.2.330.0090.00916.63
7.2.320.0080.01616.61
7.2.310.0090.00916.65
7.2.300.0060.01116.48
7.2.290.0090.00916.65
7.2.60.0000.01716.63
7.2.00.0030.00919.47
7.1.200.0110.00315.63
7.1.100.0100.00618.26
7.1.70.0030.00717.21
7.1.60.0100.01319.22
7.1.50.0050.00517.03
7.1.00.0100.07022.54
7.0.200.0100.00316.87
7.0.140.0000.06322.08
7.0.60.0100.07319.84
7.0.50.0030.08317.88
7.0.40.0070.06320.30
7.0.30.0370.07020.26
7.0.20.0300.07720.15
7.0.10.0100.08020.11
7.0.00.0070.08320.19
5.6.280.0070.06721.12
5.6.210.0070.07720.71
5.6.200.0070.08018.19
5.6.190.0130.08020.57
5.6.180.0230.03720.48
5.6.170.0230.08020.47
5.6.160.0030.04320.54
5.6.150.0070.07718.15
5.6.140.0030.08318.28
5.6.130.0000.05718.18
5.6.120.0130.08021.05
5.6.110.0070.08321.13
5.6.100.0100.03321.04
5.6.90.0130.07720.99
5.6.80.0030.07320.43
5.5.350.0230.07720.40
5.5.340.0100.04717.95
5.5.330.0070.03720.21
5.5.320.0370.07020.31
5.5.310.0530.05020.23
5.5.300.0000.04717.98
5.5.290.0130.07018.07
5.5.280.0030.04020.82
5.5.270.0070.06720.84
5.5.260.0100.07720.63
5.5.250.0100.07320.80
5.5.240.0100.03020.20
5.4.450.0000.06319.18
5.4.440.0800.06019.31
5.4.430.0900.05719.23
5.4.420.0830.05019.39
5.4.410.0700.05019.09
5.4.400.0730.06019.32
5.4.390.0900.04319.12
5.4.380.0130.06018.80
5.4.370.0230.07018.59
5.4.360.0230.05018.61
5.4.350.0270.05018.74
5.4.340.0270.05018.77
5.4.320.0230.05318.59
5.4.310.0100.06018.57
5.4.300.0200.05718.74
5.4.290.0170.08018.57
5.4.280.0230.07318.48
5.4.270.0170.07018.73
5.4.260.0330.04718.51
5.4.250.0270.06018.76
5.4.240.0200.06018.73
5.4.230.0370.05718.47
5.4.220.0300.07018.75
5.4.210.0200.07718.77
5.4.200.0100.06316.54
5.4.190.0230.05018.77
5.4.180.0270.05318.69
5.4.170.0130.07018.82
5.4.160.0270.05718.46
5.4.150.0300.06318.72
5.4.140.0300.05016.43
5.4.130.0230.06016.20
5.4.120.0170.07316.31
5.4.110.0170.06016.34
5.4.100.0330.05016.34
5.4.90.0300.06316.34
5.4.80.0270.06316.20
5.4.70.0230.05716.23
5.4.60.0270.06016.23
5.4.50.0400.04016.17
5.4.40.0300.06016.41
5.4.30.0330.04316.40
5.4.20.0100.06716.28
5.4.10.0230.06716.31
5.4.00.0230.06715.68
5.3.290.0200.07714.71
5.3.280.0230.06714.73
5.3.270.0270.07014.69
5.3.260.0300.06714.78
5.3.250.0300.06314.74
5.3.240.0130.05714.67
5.3.230.0230.05714.75
5.3.220.0170.05314.61
5.3.210.0200.08014.64
5.3.200.0200.05014.61
5.3.190.0130.07714.64
5.3.180.0230.07014.62
5.3.170.0200.07314.71
5.3.160.0200.05314.57
5.3.150.0370.04714.64
5.3.140.0170.05714.76
5.3.130.0270.04714.81
5.3.120.0170.05714.75
5.3.110.0230.05014.57
5.3.100.0170.05314.11
5.3.90.0230.06714.07
5.3.80.0200.06014.07
5.3.70.0230.05014.08
5.3.60.0230.04714.08
5.3.50.0130.06713.97
5.3.40.0170.06014.05
5.3.30.0100.06014.14
5.3.20.0300.03713.76
5.3.10.0200.06013.66
5.3.00.0230.06313.77
5.2.170.0170.04011.21
5.2.160.0130.04311.31
5.2.150.0200.04011.11
5.2.140.0130.05311.30
5.2.130.0030.05311.07
5.2.120.0230.03011.04
5.2.110.0170.04011.04
5.2.100.0170.05311.25
5.2.90.0270.04311.10
5.2.80.0130.06011.17
5.2.70.0200.05311.25
5.2.60.0270.04310.94
5.2.50.0200.03711.02
5.2.40.0100.05010.92
5.2.30.0130.04311.01
5.2.20.0170.03711.01
5.2.10.0030.05011.01
5.2.00.0070.06310.75
5.1.60.0170.03710.05
5.1.50.0100.04010.01
5.1.40.0130.04710.01
5.1.30.0030.06010.39
5.1.20.0130.03710.46
5.1.10.0200.03010.21
5.1.00.0070.04310.07
5.0.50.0070.0338.60
5.0.40.0100.0278.46
5.0.30.0000.0538.35
5.0.20.0030.0308.29
5.0.10.0030.0338.27
5.0.00.0130.0408.38
4.4.90.0100.0236.27
4.4.80.0100.0176.27
4.4.70.0070.0276.27
4.4.60.0000.0376.27
4.4.50.0100.0206.27
4.4.40.0100.0406.27
4.4.30.0000.0306.27
4.4.20.0200.0176.27
4.4.10.0130.0176.27
4.4.00.0130.0276.27
4.3.110.0100.0206.27
4.3.100.0100.0236.27
4.3.90.0130.0136.27
4.3.80.0100.0406.27
4.3.70.0100.0176.27
4.3.60.0100.0236.27
4.3.50.0070.0306.27
4.3.40.0230.0276.27
4.3.30.0070.0206.27
4.3.20.0030.0276.27
4.3.10.0030.0236.27
4.3.00.0170.0207.60

preferences:
52.9 ms | 401 KiB | 5 Q