3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'free'=> 'No', 'me' => 'No', 'taken' =>'yes', 'Foo' => 'No', 'Bar' => 'Yes', 'something' =>'Yes' ]; $array['free'] = ($array['free'] == "No") ? 0 : 1; $array['taken'] = ($array['taken'] == "No") ? 0 : 1; $array['Foo'] = ($array['Foo'] == "No") ? 0 : 1; $array['Bar'] = ($array['Bar'] == "No") ? 0 : 1; var_dump($array);

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.01318.43
8.3.50.0190.00018.07
8.3.40.0180.00418.81
8.3.30.0070.00718.68
8.3.20.0080.00018.73
8.3.10.0030.00521.92
8.3.00.0080.00021.85
8.2.180.0100.01016.75
8.2.170.0120.00622.96
8.2.160.0070.00722.08
8.2.150.0100.00724.18
8.2.140.0050.00224.66
8.2.130.0030.00521.05
8.2.120.0000.00826.35
8.2.110.0080.00020.39
8.2.100.0110.00317.84
8.2.90.0050.00317.63
8.2.80.0000.00818.84
8.2.70.0000.00817.50
8.2.60.0000.00818.16
8.2.50.0000.00818.10
8.2.40.0040.00419.14
8.2.30.0050.00220.55
8.2.20.0070.00018.14
8.2.10.0000.00817.95
8.2.00.0030.00518.07
8.1.280.0070.00725.92
8.1.270.0070.00720.36
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0030.00623.82
8.1.230.0110.00020.87
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0080.00017.22
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00818.75
8.1.160.0000.00718.76
8.1.150.0000.00818.90
8.1.140.0040.00418.91
8.1.130.0000.00720.34
8.1.120.0030.00617.38
8.1.110.0060.00317.47
8.1.100.0040.00417.38
8.1.90.0000.00817.48
8.1.80.0030.00617.46
8.1.70.0070.00017.36
8.1.60.0000.00817.61
8.1.50.0080.00017.55
8.1.40.0000.01017.43
8.1.30.0040.00417.52
8.1.20.0040.00417.63
8.1.10.0040.00417.50
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.40
8.0.270.0030.00317.27
8.0.260.0000.00618.31
8.0.250.0030.00316.85
8.0.240.0070.00016.80
8.0.230.0030.00316.78
8.0.220.0030.00316.84
8.0.210.0020.00516.86
8.0.200.0030.00316.95
8.0.190.0070.00016.75
8.0.180.0000.00716.84
8.0.170.0000.00816.71
8.0.160.0110.00016.77
8.0.150.0030.00316.80
8.0.140.0070.00016.80
8.0.130.0060.00313.31
8.0.120.0040.00416.86
8.0.110.0070.00016.75
8.0.100.0000.00716.95
8.0.90.0000.00716.90
8.0.80.0080.01016.91
8.0.70.0050.00216.79
8.0.60.0030.00316.87
8.0.50.0080.00016.80
8.0.30.0110.00917.13
8.0.20.0110.01117.42
8.0.10.0000.00716.91
8.0.00.0100.00816.57
7.4.330.0020.00215.55
7.4.320.0030.00316.61
7.4.300.0030.00316.41
7.4.290.0030.00316.51
7.4.280.0060.00316.52
7.4.270.0040.00416.51
7.4.260.0000.00716.43
7.4.250.0030.00516.59
7.4.240.0070.00016.39
7.4.230.0030.00316.59
7.4.220.0030.00316.66
7.4.210.0070.00816.59
7.4.200.0040.00416.52
7.4.140.0110.00717.86
7.4.130.0050.01416.53
7.4.120.0090.01116.48
7.4.110.0090.01216.60
7.4.100.0160.00716.50
7.4.90.0090.00916.48
7.4.80.0080.00819.39
7.4.70.0110.01216.55
7.4.60.0100.00716.44
7.4.50.0060.00916.33
7.4.40.0090.00916.52
7.4.00.0030.01014.76
7.3.330.0050.00013.16
7.3.320.0050.00013.18
7.3.310.0000.00716.36
7.3.300.0000.00716.39
7.3.290.0040.00416.12
7.3.280.0040.01416.33
7.3.260.0100.01016.37
7.3.240.0120.00716.42
7.3.230.0110.00616.34
7.3.210.0150.00316.48
7.3.200.0100.00616.52
7.3.190.0160.00416.62
7.3.180.0120.01016.55
7.3.170.0090.00716.57
7.3.160.0110.00616.35
7.3.120.0070.01015.06
7.3.110.0090.00914.88
7.3.100.0090.00914.91
7.3.90.0040.01114.62
7.3.80.0030.01314.88
7.3.70.0080.00814.82
7.3.60.0110.00414.77
7.3.50.0000.00814.54
7.3.40.0000.00814.93
7.3.30.0000.01514.91
7.3.20.0060.00316.49
7.3.10.0060.00316.66
7.3.00.0040.00416.68
7.2.330.0060.01816.77
7.2.320.0130.00716.82
7.2.310.0210.02816.29
7.2.300.0140.00316.54
7.2.290.0090.00616.43
7.2.250.0070.01315.07
7.2.240.0000.01115.09
7.2.230.0060.00615.11
7.2.220.0070.01114.90
7.2.210.0060.01215.14
7.2.200.0000.01314.97
7.2.190.0000.01215.04
7.2.180.0000.01015.18
7.2.170.0090.00614.82
7.2.160.0040.00714.93
7.2.150.0000.01316.78
7.2.140.0080.00416.55
7.2.130.0000.00916.71
7.2.120.0090.00616.77
7.2.110.0090.00616.88
7.2.100.1880.00815.79
7.2.90.0860.00815.54
7.2.80.1510.00615.44
7.2.70.0160.00615.99
7.2.60.1490.01015.76
7.2.50.1550.00615.72
7.2.40.1370.01115.75
7.2.30.1550.00415.80
7.2.20.2360.00515.45
7.2.10.2140.00815.53
7.2.00.2350.00315.80
7.1.330.0030.01315.86
7.1.320.0140.00415.88
7.1.310.0090.00615.66
7.1.300.0080.00616.00
7.1.290.0070.00715.75
7.1.280.0060.00615.78
7.1.270.0030.00615.79
7.1.260.0060.00315.69
7.1.250.0100.00315.63
7.1.240.0000.01215.94
7.1.230.0000.00815.73
7.1.220.3410.00614.79
7.1.210.2110.00514.84
7.1.200.1670.00314.80
7.1.190.0100.00814.49
7.1.180.1320.00514.61
7.1.170.1710.00814.48
7.1.160.1680.00714.54
7.1.150.1870.00514.75
7.1.140.1510.00314.90
7.1.130.2510.01014.65
7.1.120.0400.00614.70
7.1.110.0770.00514.62
7.1.100.0540.01114.63
7.1.90.0460.00614.73
7.1.80.0400.00714.79
7.1.70.0400.00714.78
7.1.60.0610.01123.60
7.1.50.2840.01123.54
7.1.40.2350.00723.75
7.1.30.5020.00623.72
7.1.20.2170.01523.65
7.1.10.3590.01314.75
7.1.00.1680.00814.69
7.0.330.0030.00815.61
7.0.320.0050.00515.12
7.0.310.0030.00915.54
7.0.300.0030.01015.60
7.0.290.0050.00315.36
7.0.280.0070.00715.21
7.0.270.0030.00915.34
7.0.260.0060.00615.36
7.0.250.0000.00815.25
7.0.240.0070.00315.54
7.0.230.0000.01315.45
7.0.220.0000.00915.48
7.0.210.0030.01015.43
7.0.200.0000.00815.10
7.0.190.0100.00315.16
7.0.180.0040.00715.20
7.0.170.0070.00315.55
7.0.160.0060.00615.43
7.0.150.0040.00715.22
7.0.140.0080.00415.49
7.0.130.0000.01215.37
7.0.120.0050.01115.31
7.0.110.0100.00715.26
7.0.100.0070.00715.29
7.0.90.0030.00915.16
7.0.80.0090.00315.13
7.0.70.0070.00715.60
7.0.60.0120.00315.43
7.0.50.0060.00815.65
7.0.40.0030.01013.58
7.0.30.0090.00913.42
7.0.20.0090.00913.31
7.0.10.0080.00613.39
7.0.00.0030.00713.22
5.6.400.0070.00714.18
5.6.390.0080.00514.32
5.6.380.0080.01014.28
5.6.370.0070.00314.36
5.6.360.0050.00314.51
5.6.350.0100.00314.77
5.6.340.0070.00714.32
5.6.330.0060.00614.36
5.6.320.0030.00914.33
5.6.310.0050.00514.33
5.6.300.0040.00814.83
5.6.290.0040.01114.14
5.6.280.0060.00614.28
5.6.270.0080.00414.29
5.6.260.0040.01114.61
5.6.250.0030.00714.20
5.6.240.0000.01314.25
5.6.230.0090.00314.26
5.6.220.0030.01014.30
5.6.210.0100.00314.50
5.6.200.0030.00914.44
5.6.190.0060.00614.47
5.6.180.0070.00714.21
5.6.170.0030.01414.19
5.6.160.0080.00414.09
5.6.150.0000.01514.44
5.6.140.0090.00614.31
5.6.130.0000.01114.43
5.6.120.0000.01314.43
5.6.110.0040.00714.34
5.6.100.0100.00314.61
5.6.90.0000.01814.25
5.6.80.0090.00614.38
5.6.70.0100.00714.39
5.6.60.0030.01414.40
5.6.50.0070.01114.29
5.6.40.0060.00614.35
5.6.30.0040.01114.28
5.6.20.0070.00714.06
5.6.10.0150.00014.42
5.6.00.0080.00614.32

preferences:
75.11 ms | 400 KiB | 5 Q