3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = sys_get_temp_dir() . '/test.tmp'; file_put_contents("abcd", $path); var_dump(mime_content_type($path) === 'text/plain'); file_put_contents("abc", $path); var_dump(mime_content_type($path) === 'text/plain');

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.0100.01018.55
8.3.50.0110.00821.99
8.3.40.0070.00718.73
8.3.30.0040.01119.09
8.3.20.0040.00420.34
8.3.10.0040.00421.59
8.3.00.0030.00519.26
8.2.180.0160.00618.54
8.2.170.0060.00922.96
8.2.160.0110.00422.00
8.2.150.0070.00724.18
8.2.140.0080.00024.66
8.2.130.0070.01326.16
8.2.120.0080.00019.41
8.2.110.0090.00021.10
8.2.100.0080.00418.16
8.2.90.0000.00919.13
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0000.01122.93
8.2.50.0030.00923.00
8.2.40.0000.00918.16
8.2.30.0000.00818.00
8.2.20.0040.00417.59
8.2.10.0020.00518.04
8.2.00.0040.00417.52
8.1.280.0180.00425.92
8.1.270.0080.00018.76
8.1.260.0090.00626.35
8.1.250.0080.00028.09
8.1.240.0100.00021.36
8.1.230.0080.00419.54
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0030.00722.60
8.1.180.0040.00722.48
8.1.170.0000.00818.50
8.1.160.0040.00422.05
8.1.150.0040.00418.82
8.1.140.0000.00819.25
8.1.130.0000.00817.70
8.1.120.0070.00017.39
8.1.110.0060.00317.47
8.1.100.0000.00717.33
8.1.90.0040.00417.53
8.1.80.0070.00017.43
8.1.70.0000.00817.36
8.1.60.0040.00417.48
8.1.50.0080.00417.42
8.1.40.0040.00417.46
8.1.30.0030.00617.60
8.1.20.0070.00017.57
8.1.10.0080.00017.41
8.1.00.0050.00517.54
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0070.00018.44
8.0.270.0070.00017.32
8.0.260.0030.00317.18
8.0.250.0000.00716.92
8.0.240.0080.00017.06
8.0.230.0070.00017.02
8.0.220.0080.00016.82
8.0.210.0000.00716.82
8.0.200.0070.00317.04
8.0.190.0000.00817.02
8.0.180.0080.00016.88
8.0.170.0000.00817.00
8.0.160.0040.00416.98
8.0.150.0000.00816.89
8.0.140.0040.00316.82
8.0.130.0000.00613.41
8.0.120.0060.00316.93
8.0.110.0040.00416.92
8.0.100.0000.00717.07
8.0.90.0040.00416.90
8.0.80.0090.01316.95
8.0.70.0040.00416.79
8.0.60.0040.00416.83
8.0.50.0040.00416.74
8.0.30.0080.01317.04
8.0.20.0120.00717.40
8.0.10.0080.00017.05
8.0.00.0070.01116.73
7.4.330.0050.00015.03
7.4.320.0030.00316.51
7.4.300.0030.00316.61
7.4.290.0000.00716.65
7.4.280.0040.00416.63
7.4.270.0000.00816.61
7.4.260.0000.00716.35
7.4.250.0030.00516.45
7.4.240.0060.00216.58
7.4.230.0000.00716.66
7.4.220.0180.00716.52
7.4.210.0090.00616.43
7.4.200.0040.00416.70
7.4.160.0120.00416.48
7.4.150.0140.00317.40
7.4.140.0090.01317.86
7.4.130.0100.00816.48
7.4.120.0100.00816.54
7.4.110.0100.01616.58
7.4.100.0100.00716.63
7.4.90.0000.01616.35
7.4.80.0060.01119.39
7.4.70.0040.01516.61
7.4.60.0100.00616.52
7.4.50.0000.00816.53
7.4.40.0140.00316.57
7.4.30.0120.01216.44
7.4.00.0140.00314.78
7.3.330.0070.00013.10
7.3.320.0060.00013.02
7.3.310.0000.00816.29
7.3.300.0000.00716.33
7.3.290.0070.00716.29
7.3.280.0070.00816.22
7.3.270.0130.00617.40
7.3.260.0130.00416.45
7.3.250.0060.01116.28
7.3.240.0050.01416.35
7.3.230.0100.01416.39
7.3.210.0080.00816.40
7.3.200.0120.00919.39
7.3.190.0100.00716.31
7.3.180.0100.00716.20
7.3.170.0130.01016.66
7.3.160.0130.00316.45
7.2.330.0090.00916.64
7.2.320.0030.01416.56
7.2.310.0070.01016.62
7.2.300.0130.01016.46
7.2.290.0090.00916.33
7.2.60.0040.00416.78
7.2.00.0040.01119.20
7.1.200.0040.00815.80
7.1.100.0000.01517.96
7.1.70.0000.00716.80
7.1.60.0070.01419.46
7.1.50.0060.01616.65
7.1.00.0100.07022.38
7.0.200.0830.00914.60
7.0.140.0030.04322.07
7.0.60.0030.05319.99
7.0.50.0070.06717.84
7.0.40.0000.05020.07
7.0.30.0300.07320.11
7.0.20.0200.07720.19
7.0.10.0170.07720.16
7.0.00.0030.08720.16
5.6.280.0070.06320.88
5.6.210.0070.05720.60
5.6.200.0070.04318.19
5.6.190.0070.04020.45
5.6.180.0470.07720.32
5.6.170.0100.04720.51
5.6.160.0230.06720.74
5.6.150.0070.05018.23
5.6.140.0100.06018.11
5.6.130.0100.06018.18
5.6.120.0030.04321.04
5.6.110.0030.07320.96
5.6.100.0170.07321.13
5.6.90.0030.04020.97
5.6.80.0100.04720.41
5.5.350.3100.04320.27
5.5.340.0070.06718.00
5.5.330.0100.06720.42
5.5.320.0030.08720.18
5.5.310.0230.04320.20
5.5.300.0070.05317.98
5.5.290.0130.07318.02
5.5.280.0070.07020.77
5.5.270.0070.06720.87
5.5.260.0130.06320.91
5.5.250.0070.06020.63
5.5.240.0070.08020.14
5.4.450.0400.07019.24
5.4.440.0400.07319.45
5.4.430.0030.06019.51
5.4.420.0100.05319.51
5.4.410.0030.06019.38
5.4.400.0070.05719.17
5.4.390.0400.04018.66
5.4.380.0270.06018.49
5.4.370.0200.06018.41
5.4.360.0200.06018.45
5.4.350.0230.05718.43
5.4.340.0230.05318.55
5.4.320.0400.04318.53
5.4.310.0270.05018.66
5.4.300.0300.05018.63
5.4.290.0300.05018.45
5.4.280.0300.04718.67
5.4.270.0230.05318.46
5.4.260.0230.05018.62
5.4.250.0270.05718.48
5.4.240.0270.06018.56
5.4.230.0270.05018.60
5.4.220.0300.05018.39
5.4.210.0270.05318.39
5.4.200.0230.05016.65
5.4.190.0270.07318.47
5.4.180.0230.05018.33
5.4.170.0230.06018.43
5.4.160.0230.05018.64
5.4.150.0270.05718.52
5.4.140.0330.04316.15
5.4.130.0230.05316.31
5.4.120.0270.04716.08
5.4.110.0300.04716.29
5.4.100.0330.04316.19
5.4.90.0330.04016.06
5.4.80.0300.05016.30
5.4.70.0300.05016.32
5.4.60.0330.04016.27
5.4.50.0230.05016.28
5.4.40.0230.05316.12
5.4.30.0230.05016.32
5.4.20.0230.06016.06
5.4.10.0270.05316.09
5.4.00.0330.06315.62
5.3.290.0300.06014.65
5.3.280.0300.06314.54
5.3.270.0370.04714.53
5.3.260.0530.04014.52
5.3.250.0230.06714.50
5.3.240.0230.05714.50
5.3.230.0270.05014.57
5.3.220.0330.05014.56
5.3.210.0300.05014.47
5.3.200.0230.05314.46
5.3.190.0270.05314.57
5.3.180.0300.04714.64
5.3.170.0270.05014.66
5.3.160.0300.05014.54
5.3.150.0300.04714.65
5.3.140.0200.05714.52
5.3.130.0230.05714.46
5.3.120.0300.05714.54
5.3.110.0330.05314.54
5.3.100.0230.05313.95
5.3.90.0330.04314.11
5.3.80.0400.04714.09
5.3.70.0330.04313.93
5.3.60.0270.05713.94
5.3.50.0270.05013.89
5.3.40.0200.05714.04
5.3.30.0300.04314.00
5.3.20.0200.05313.77
5.3.10.0300.04313.62
5.3.00.0230.06013.55
5.2.170.0300.03311.11
5.2.160.0230.03711.11
5.2.150.0170.05011.09
5.2.140.0130.04711.10
5.2.130.0270.04311.07
5.2.120.0200.04011.14
5.2.110.0170.04311.25
5.2.100.0200.04011.09
5.2.90.0170.04311.14
5.2.80.0200.04311.05
5.2.70.0200.04711.06
5.2.60.0230.03711.20
5.2.50.0200.04310.93
5.2.40.0170.04710.90
5.2.30.0130.04310.93
5.2.20.0100.04310.96
5.2.10.0170.04010.83
5.2.00.0130.04010.81
5.1.60.0230.02710.06
5.1.50.0200.03010.12
5.1.40.0100.0379.99
5.1.30.0130.03710.38
5.1.20.0100.04010.46
5.1.10.0170.03310.10
5.1.00.0200.03010.10
5.0.50.0070.0308.68
5.0.40.0100.0278.41
5.0.30.0100.0438.33
5.0.20.0100.0278.32
5.0.10.0130.0278.34
5.0.00.0130.0408.14
4.4.90.0100.0205.95
4.4.80.0070.0235.91
4.4.70.0030.0275.90
4.4.60.0100.0205.82
4.4.50.0030.0275.89
4.4.40.0070.0375.85
4.4.30.0130.0175.91
4.4.20.0070.0275.92
4.4.10.0070.0235.95
4.4.00.0100.0335.93
4.3.110.0070.0235.79
4.3.100.0070.0205.84
4.3.90.0100.0205.87
4.3.80.0070.0335.80
4.3.70.0100.0175.81
4.3.60.0030.0235.86
4.3.50.0100.0205.79
4.3.40.0030.0375.75
4.3.30.0000.0274.54
4.3.20.0070.0204.57
4.3.10.0070.0204.50
4.3.00.0100.0238.32

preferences:
51.91 ms | 401 KiB | 5 Q