3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = array( 'image 6 alt', 'image 6 title', 'public:///image.png', ); $values = array ( 'fid' => '2', 'uid' => '0', 'filename' => 'image.png', 'uri' => 'public:///image.png', 'filemime' => 'image/png', 'filesize' => '333', 'status' => '1', 'timestamp' => '1541320113', 'alt' => ' image 6 alt', 'title' => ' image 6 title', 'width' => '140', 'height' => '100', ); foreach ($item as $value) { debug(in_array($value, $values)); }

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.40.0120.00318.66
8.3.30.0110.00418.71
8.3.20.0000.00819.02
8.3.10.0050.00323.65
8.3.00.0070.00720.39
8.2.170.0040.01118.92
8.2.160.0070.01022.96
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00219.82
8.2.120.0080.00026.16
8.2.110.0090.00021.09
8.2.100.0000.01117.72
8.2.90.0030.00618.03
8.2.80.0060.00318.04
8.2.70.0080.00017.93
8.2.60.0040.00417.98
8.2.50.0040.00418.10
8.2.40.0000.00719.30
8.2.30.0000.00919.30
8.2.20.0000.00718.00
8.2.10.0000.00718.10
8.2.00.0050.00318.08
8.1.270.0030.00522.19
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0040.00422.05
8.1.230.0040.00722.68
8.1.220.0060.00317.78
8.1.210.0060.00319.14
8.1.200.0040.00717.48
8.1.190.0040.00417.13
8.1.180.0030.00618.10
8.1.170.0030.00518.56
8.1.160.0000.00718.89
8.1.150.0020.00518.88
8.1.140.0040.00422.17
8.1.130.0030.00320.12
8.1.120.0040.00417.50
8.1.110.0040.00417.37
8.1.100.0040.00417.39
8.1.90.0040.00417.35
8.1.80.0070.00017.45
8.1.70.0080.00017.46
8.1.60.0040.00417.59
8.1.50.0080.00017.55
8.1.40.0060.00417.39
8.1.30.0080.00017.51
8.1.20.0070.00017.60
8.1.10.0060.00317.49
8.1.00.0030.00717.38
8.0.300.0030.00619.65
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0030.00317.23
8.0.260.0000.00618.48
8.0.250.0000.00816.98
8.0.240.0040.00417.00
8.0.230.0030.00316.99
8.0.220.0070.00016.87
8.0.210.0070.00016.90
8.0.200.0000.00717.01
8.0.190.0030.00616.96
8.0.180.0080.00016.95
8.0.170.0000.00816.97
8.0.160.0040.00416.91
8.0.150.0040.00416.84
8.0.140.0070.00016.91
8.0.130.0050.00013.36
8.0.120.0040.00416.94
8.0.110.0050.00316.75
8.0.100.0040.00416.79
8.0.90.0040.00416.85
8.0.80.0060.01016.91
8.0.70.0000.00716.75
8.0.60.0040.00416.93
8.0.50.0030.00316.81
8.0.30.0090.01117.00
8.0.20.0090.00917.41
8.0.10.0040.00417.15
8.0.00.0070.01116.75
7.4.330.0000.00415.55
7.4.320.0030.00316.50
7.4.300.0030.00316.50
7.4.290.0030.00316.43
7.4.280.0050.00216.59
7.4.270.0000.00716.50
7.4.260.0030.00316.51
7.4.250.0040.00416.55
7.4.240.0030.00316.51
7.4.230.0000.00716.54
7.4.220.0050.00216.65
7.4.210.0100.00816.55
7.4.200.0000.00816.53
7.4.160.0070.00816.48
7.4.140.0090.00917.86
7.4.130.0160.00716.66
7.4.120.0120.00916.45
7.4.110.0070.01116.48
7.4.100.0070.01116.54
7.4.90.0120.00616.36
7.4.80.0100.00719.39
7.4.70.0110.00616.34
7.4.60.0140.00316.53
7.4.50.0040.01216.56
7.4.40.0070.01116.39
7.4.00.0110.00714.95
7.3.330.0030.00313.15
7.3.320.0050.00013.07
7.3.310.0050.00316.38
7.3.300.0070.00016.30
7.3.290.0040.00416.34
7.3.280.0110.01116.31
7.3.260.0080.01216.40
7.3.240.0100.00816.46
7.3.230.0120.00916.27
7.3.210.0110.00716.33
7.3.200.0100.00616.34
7.3.190.0130.00316.33
7.3.180.0140.00716.29
7.3.170.0070.01116.48
7.3.160.0130.00316.61
7.3.120.0070.01214.81
7.3.110.0020.01514.89
7.3.100.0030.01014.85
7.3.90.0080.00814.80
7.3.80.0040.01114.80
7.3.70.0090.00414.87
7.3.60.0040.01114.85
7.3.50.0040.00915.01
7.3.40.0030.00914.88
7.3.30.0060.00714.89
7.3.20.0050.00816.65
7.3.10.0050.00816.52
7.3.00.0040.00716.60
7.2.330.0090.00916.66
7.2.320.0080.01016.70
7.2.310.0140.00616.71
7.2.300.0070.01016.58
7.2.290.0130.00516.46
7.2.250.0110.00715.20
7.2.240.0070.01015.15
7.2.230.0030.01214.91
7.2.220.0050.01014.93
7.2.210.0030.01114.81
7.2.200.0030.01114.95
7.2.190.0070.00715.02
7.2.180.0080.00614.99
7.2.170.0080.00815.03
7.2.160.0120.00314.81
7.2.150.0090.00016.92
7.2.140.0100.00016.83
7.2.130.0030.01116.82
7.2.120.0110.00316.75
7.2.110.0160.00915.64
7.2.100.0250.00715.73
7.2.90.0190.00615.81
7.2.80.0160.00915.82
7.2.70.0130.01015.90
7.2.60.0150.01115.99
7.2.50.0150.00715.90
7.2.40.0170.00715.95
7.2.30.0090.00915.92
7.2.20.0110.00715.80
7.2.10.0150.00715.83
7.2.00.0140.00815.88
7.1.330.0080.00715.56
7.1.320.0060.00915.62
7.1.310.0050.00815.53
7.1.300.0030.01015.63
7.1.290.0040.01215.76
7.1.280.0050.00715.77
7.1.270.0070.00815.75
7.1.260.0050.00715.68
7.1.250.0060.01015.71
7.1.230.0260.01013.63
7.1.220.0210.00813.66
7.1.210.0280.00213.75
7.1.200.0260.01013.80
7.1.190.0330.00413.69
7.1.180.0270.00513.74
7.1.170.0290.00613.70
7.1.160.0300.00313.76
7.1.150.0230.00313.78
7.1.140.0320.00713.72
7.1.130.0140.01013.71
7.1.120.0270.00313.85
7.1.110.0650.00813.81
7.1.100.0160.01013.59
7.1.90.0230.00813.50
7.1.80.0620.00713.75
7.1.70.0200.00613.66
7.1.60.0500.01231.72
7.1.50.0420.00831.74
7.1.40.0430.00731.73
7.1.30.0340.01031.71
7.1.20.0420.00531.71
7.1.10.0300.00213.70
7.1.00.0210.00713.75
5.6.380.0070.00914.17

preferences:
59.35 ms | 400 KiB | 5 Q