3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr =[ "id" => "integer:>0", "interval_id" => "string:!empty", "miles" => "integer:optional", "kms" => "integer:optional", "created_by" => "string:!empty|null", "created_at" => "integer:>0|null", "updated_by" => "string:!empty|null", "updated_at" => "integer:>0|null" ]; foreach ($arr as $key => $value) { // echo $key, "==>", $value, "\n"; if ( substr_count($value, 'optional')){ echo $key, "\n"; } }

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.0120.00316.50
8.3.50.0070.00716.49
8.3.40.0070.00718.84
8.3.30.0100.00318.59
8.3.20.0050.00318.60
8.3.10.0070.00021.74
8.3.00.0070.00021.73
8.2.180.0100.01016.63
8.2.170.0150.00622.96
8.2.160.0070.00722.12
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00719.85
8.2.120.0000.00726.35
8.2.110.0030.00620.78
8.2.100.0090.00317.78
8.2.90.0050.00319.21
8.2.80.0040.00418.84
8.2.70.0000.00817.63
8.2.60.0040.00417.50
8.2.50.0050.00317.50
8.2.40.0000.00919.35
8.2.30.0040.00417.74
8.2.20.0040.00417.98
8.2.10.0000.00918.05
8.2.00.0000.00817.61
8.1.280.0140.01125.92
8.1.270.0040.00422.06
8.1.260.0040.00428.09
8.1.250.0060.00928.09
8.1.240.0060.00319.22
8.1.230.0080.00321.04
8.1.220.0040.00418.56
8.1.210.0060.00318.77
8.1.200.0030.00517.22
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00317.62
8.1.160.0000.00718.88
8.1.150.0000.00720.67
8.1.140.0050.00319.57
8.1.130.0070.00017.61
8.1.120.0030.00517.36
8.1.110.0040.00417.48
8.1.100.0030.00317.51
8.1.90.0040.00317.49
8.1.80.0000.00717.39
8.1.70.0000.00717.45
8.1.60.0000.00817.57
8.1.50.0080.00017.39
8.1.40.0030.00617.34
8.1.30.0040.00417.48
8.1.20.0000.00817.65
8.1.10.0050.00217.56
8.1.00.0040.00417.43
8.0.300.0000.00918.77
8.0.290.0040.00416.63
8.0.280.0040.00417.98
8.0.270.0000.00717.90
8.0.260.0000.00617.25
8.0.250.0030.00316.83
8.0.240.0030.00316.94
8.0.230.0000.00616.90
8.0.220.0000.00716.84
8.0.210.0000.00716.78
8.0.200.0040.00416.82
8.0.190.0040.00416.98
8.0.180.0000.00816.96
8.0.170.0070.00016.80
8.0.160.0050.00216.79
8.0.150.0000.00716.71
8.0.140.0000.00716.73
8.0.130.0070.00013.35
8.0.120.0040.00416.89
8.0.110.0020.00516.85
8.0.100.0040.00416.89
8.0.90.0070.00016.91
8.0.80.0110.00716.95
8.0.70.0040.00416.94
8.0.60.0000.00716.91
8.0.50.0000.00816.88
8.0.30.0100.00816.97
8.0.20.0090.01017.40
8.0.10.0040.00317.02
8.0.00.0100.00716.92
7.4.330.0020.00215.55
7.4.320.0060.00016.66
7.4.300.0000.00616.44
7.4.290.0000.00816.49
7.4.280.0000.00716.48
7.4.270.0030.00316.40
7.4.260.0000.01016.57
7.4.250.0000.00816.47
7.4.240.0040.00416.46
7.4.230.0070.00016.54
7.4.220.0070.01016.52
7.4.210.0110.00416.55
7.4.200.0030.00316.55
7.4.160.0100.00716.51
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0120.00816.43
7.4.120.0080.01116.46
7.4.110.0140.01216.39
7.4.100.0070.01016.46
7.4.90.0070.01116.56
7.4.80.0160.01019.39
7.4.70.0040.01216.65
7.4.60.0090.00616.53
7.4.50.0100.00216.29
7.4.40.0060.01116.39
7.4.30.0080.00816.30
7.4.00.0050.01214.94
7.3.330.0000.00713.00
7.3.320.0000.00513.00
7.3.310.0070.00016.12
7.3.300.0030.00316.24
7.3.290.0090.00816.26
7.3.280.0100.00716.25
7.3.270.0130.00417.40
7.3.260.0090.00816.26
7.3.250.0090.00816.29
7.3.240.0110.00816.38
7.3.230.0030.01416.39
7.3.210.0090.01216.36
7.3.200.0100.00716.30
7.3.190.0100.00716.30
7.3.180.0110.00616.30
7.3.170.0130.00316.23
7.3.160.0060.01216.59
7.3.120.0060.01214.77
7.3.110.0120.00614.45
7.3.100.0070.01015.10
7.3.90.0120.00315.07
7.3.80.0100.00614.87
7.3.70.0050.00815.00
7.3.60.0030.01014.91
7.3.50.0070.00714.71
7.3.40.0030.00714.59
7.3.30.0070.00714.84
7.3.20.0110.00416.64
7.3.10.0070.00816.74
7.3.00.0080.00716.74
7.2.330.0090.00916.68
7.2.320.0030.01316.32
7.2.310.0070.01016.73
7.2.300.0170.00516.40
7.2.290.0000.01616.63
7.2.250.0040.01515.09
7.2.240.0060.01115.23
7.2.230.0130.00314.85
7.2.220.0030.01414.96
7.2.210.0000.01315.00
7.2.200.0040.01115.06
7.2.190.0030.00915.07
7.2.180.0070.01014.64
7.2.170.0060.00314.94
7.2.130.0040.01216.83
7.2.120.0000.01016.82
7.2.110.0000.01216.81
7.2.100.0030.00716.78
7.2.90.0100.00616.64
7.2.80.0030.00716.90
7.2.70.0130.00316.80
7.2.60.0030.01216.84
7.2.50.0060.00616.78
7.2.40.0000.01416.79
7.2.30.0120.00016.75
7.2.20.0030.00916.98
7.2.10.0070.00417.06
7.2.00.0030.01218.06
7.1.330.0100.00315.78
7.1.320.0060.01215.50
7.1.310.0000.00915.85
7.1.300.0030.00615.80
7.1.290.0060.00916.02
7.1.280.0080.00415.61
7.1.270.0040.01115.83
7.1.260.0040.01115.78
7.1.250.0000.01315.60
7.1.200.0040.00815.63
7.1.70.0000.00716.93
7.1.60.0070.01117.27
7.1.00.0000.08022.31
7.0.200.0420.01014.75
7.0.120.0100.05722.09
7.0.110.0100.06322.00
7.0.100.0100.06022.06
7.0.90.0070.06322.07
7.0.80.0500.06022.14
7.0.70.0170.05022.14
7.0.60.0100.05322.02
7.0.50.0130.05722.15
7.0.40.0170.04722.16
7.0.30.0100.05722.06
7.0.20.0130.07322.11
7.0.10.0100.07722.19
7.0.00.0130.06322.14
5.6.270.0100.06320.80
5.6.260.0130.06320.80
5.6.250.0100.07320.79
5.6.240.0030.06320.88
5.6.230.0200.05020.82
5.6.220.0070.07320.83
5.6.210.0070.06321.01
5.6.200.0130.06320.95
5.6.190.0000.07720.96
5.6.180.0070.06020.88
5.6.170.0130.06020.85
5.6.160.0130.06320.87
5.6.150.0130.06020.75
5.6.140.0130.07020.80
5.6.130.0070.07720.75
5.6.120.0200.07020.99
5.6.110.0100.06721.03
5.6.100.0070.06321.00
5.6.90.0070.05720.84
5.6.80.0100.05320.36
5.6.70.0100.05720.23
5.6.60.0170.06320.40
5.6.50.0100.05020.41
5.6.40.0130.05020.21
5.6.30.0200.06020.16
5.6.20.0100.06320.27
5.6.10.0200.06020.39
5.6.00.0100.04720.44

preferences:
88.72 ms | 401 KiB | 5 Q