3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(true,true,false,false,true,false); $res = array_keys($arr, true); var_dump($res); echo $res[array_rand($res)];

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)
7.3.120.0090.00614.84
7.3.110.0070.00714.66
7.3.100.0000.01214.39
7.3.90.0090.00614.57
7.3.80.0040.00714.77
7.3.70.0070.00714.92
7.3.60.0000.00814.63
7.3.50.0070.01014.77
7.3.40.0030.00714.77
7.3.30.0070.00714.47
7.3.20.0070.01016.67
7.3.10.0060.01116.16
7.3.00.0160.00516.45
7.2.240.0000.01715.25
7.2.230.0090.00914.68
7.2.220.0030.01215.01
7.2.210.0100.00615.00
7.2.200.0040.00815.04
7.2.190.0060.00914.59
7.2.180.0070.00714.93
7.2.170.0060.01014.77
7.2.160.0040.00915.03
7.2.150.0080.00516.64
7.2.140.0070.00716.93
7.2.130.0130.00916.66
7.2.120.0060.00916.54
7.2.110.0090.01416.62
7.2.100.0090.00816.40
7.2.90.0160.00517.13
7.2.80.0130.00916.58
7.2.70.0110.00816.16
7.2.60.0140.00816.61
7.2.50.0080.01316.69
7.2.40.0080.01416.77
7.2.30.0100.01016.65
7.2.20.0080.00816.54
7.2.10.0150.00316.56
7.2.00.0210.00417.63
7.1.330.0030.01215.95
7.1.320.0030.01015.65
7.1.310.0030.01015.77
7.1.300.0040.01215.98
7.1.290.0060.01215.67
7.1.280.0070.00715.61
7.1.270.0030.01015.52
7.1.260.0040.01115.86
7.1.250.0160.00515.93
7.1.70.0030.00517.15
7.1.60.0090.00617.06
7.1.50.0030.00816.72
7.1.40.0030.00716.61
7.1.30.0040.00716.53
7.1.20.0080.00316.74
7.1.10.0000.00716.52
7.1.00.0000.01416.81
7.0.200.0030.00616.75
7.0.190.0000.00716.35
7.0.180.0000.00915.98
7.0.170.0040.00416.16
7.0.160.0030.00716.36
7.0.150.0000.00716.11
7.0.140.0000.01016.06
7.0.130.0030.00516.34
7.0.120.0000.00816.46
7.0.110.0040.00416.21
7.0.100.0000.00716.21
7.0.90.0040.00416.32
7.0.80.0020.00516.13
7.0.70.0000.00816.18
7.0.60.0000.00916.22
7.0.50.0080.00016.34
7.0.40.0040.00415.09
7.0.30.0000.00815.09
7.0.20.0030.00615.09
7.0.10.0030.00715.09
7.0.00.0030.00615.09
5.6.300.0070.04120.82
5.6.290.0000.04420.79
5.6.280.0000.05220.89
5.6.270.0000.04420.84
5.6.260.0000.05220.86
5.6.250.0060.04520.86
5.6.240.0060.03920.95
5.6.230.0100.04320.86
5.6.220.0060.05520.78
5.6.210.0030.04020.61
5.6.200.0070.06620.73
5.6.190.0070.04520.98
5.6.180.0060.03820.70
5.6.170.0030.04320.69
5.6.160.0070.04021.00
5.6.150.0000.04720.96
5.6.140.0060.04120.97
5.6.130.0100.03820.96
5.6.120.0000.05120.91
5.6.110.0090.04120.90
5.6.100.0130.03120.80
5.6.90.0100.05221.02
5.6.80.0030.04120.36
5.6.70.0030.03820.40
5.6.60.0000.04220.18
5.6.50.0030.04220.20
5.6.40.0030.03920.28
5.6.30.0000.04720.28
5.6.20.0000.04420.27
5.6.10.0160.04320.33
5.6.00.0030.04320.35
5.5.380.0100.03617.43
5.5.370.0030.04317.57
5.5.360.0100.03417.44
5.5.350.0070.03817.39
5.5.340.0030.04317.86
5.5.330.0000.04617.77
5.5.320.0000.04718.06
5.5.310.0030.04318.03
5.5.300.0030.04018.12
5.5.290.0030.04117.96
5.5.280.0030.05517.70
5.5.270.0100.04018.02
5.5.260.0000.04717.96
5.5.250.0030.04317.83
5.5.240.0030.03717.25
5.5.230.0060.03817.20
5.5.220.0030.03817.32
5.5.210.0000.04517.49
5.5.200.0000.04017.38
5.5.190.0060.04217.35
5.5.180.0000.04517.34
5.5.160.0030.03617.46
5.5.150.0030.08217.32
5.5.140.0030.04917.37
5.5.130.0000.04417.46
5.5.120.0070.03917.31
5.5.110.0030.03917.29
5.5.100.0100.03617.12
5.5.90.0000.04517.09
5.5.80.0000.04417.09
5.5.70.0030.03717.10
5.5.60.0000.05216.95
5.5.50.0030.03517.25
5.5.40.0170.03617.30
5.5.30.0000.03917.30
5.5.20.0090.03116.94
5.5.10.0000.03917.09
5.5.00.0070.05317.17

preferences:
31.95 ms | 406 KiB | 6 Q