3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file_location=stream_get_meta_data(tmpfile())['uri']; var_dump($file_location, file_exists($file_location));

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.00318.18
8.3.50.0090.00616.41
8.3.40.0100.01018.48
8.3.30.0110.00318.71
8.3.20.0090.00020.25
8.3.10.0050.00223.69
8.3.00.0040.00423.69
8.2.180.0120.00618.42
8.2.170.0040.01122.96
8.2.160.0070.01020.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00421.11
8.2.120.0090.00626.35
8.2.110.0110.00022.12
8.2.100.0080.00418.03
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0000.00718.03
8.2.50.0040.00418.07
8.2.40.0090.00022.20
8.2.30.0050.00220.50
8.2.20.0040.00417.71
8.2.10.0000.00718.05
8.2.00.0030.00618.14
8.1.280.0140.00725.92
8.1.270.0030.00620.33
8.1.260.0050.00328.09
8.1.250.0130.00628.09
8.1.240.0000.00922.45
8.1.230.0090.00319.12
8.1.220.0060.00317.74
8.1.210.0000.01018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0080.00018.47
8.1.160.0030.00320.64
8.1.150.0040.00418.79
8.1.140.0030.00519.55
8.1.130.0030.00317.64
8.1.120.0030.00517.32
8.1.110.0000.00717.36
8.1.100.0030.00517.31
8.1.90.0060.00317.33
8.1.80.0030.00517.29
8.1.70.0050.00517.35
8.1.60.0000.00817.50
8.1.50.0040.00417.32
8.1.40.0060.00317.45
8.1.30.0030.00617.59
8.1.20.0040.00417.57
8.1.10.0000.00717.45
8.1.00.0060.00317.46
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0070.00017.14
8.0.260.0000.00717.12
8.0.250.0030.00316.89
8.0.240.0030.00316.89
8.0.230.0030.00316.94
8.0.220.0040.00416.86
8.0.210.0070.00016.82
8.0.200.0030.00316.91
8.0.190.0030.00516.86
8.0.180.0080.00016.90
8.0.170.0050.00316.81
8.0.160.0070.00016.88
8.0.150.0000.00716.88
8.0.140.0080.00316.70
8.0.130.0060.00313.32
8.0.120.0050.00316.80
8.0.110.0000.00716.67
8.0.100.0020.00516.90
8.0.90.0040.00416.88
8.0.80.0090.00616.82
8.0.70.0030.00516.90
8.0.60.0000.00816.92
8.0.50.0000.00716.76
8.0.30.0090.00916.88
8.0.20.0110.00817.40
8.0.10.0000.00716.96
8.0.00.0130.00516.80
7.4.330.0000.00516.87
7.4.320.0030.00316.37
7.4.300.0030.00316.46
7.4.290.0070.00016.45
7.4.280.0030.00316.54
7.4.270.0030.00316.34
7.4.260.0030.00716.44
7.4.250.0040.00416.36
7.4.240.0050.00216.50
7.4.230.0030.00316.43
7.4.220.0060.01316.31
7.4.210.0030.01216.47
7.4.200.0000.00716.41
7.4.160.0120.00316.36
7.4.150.0090.00917.40
7.4.140.0080.01317.86
7.4.130.0090.00916.59
7.4.120.0080.01016.51
7.4.110.0070.01016.62
7.4.100.0080.00816.40
7.4.90.0120.00616.47
7.4.80.0070.01319.39
7.4.70.0040.01216.31
7.4.60.0060.00916.41
7.4.50.0100.00516.16
7.4.40.0130.00316.29
7.4.30.0140.00516.34
7.4.10.0070.00714.49
7.4.00.0030.01614.90
7.3.330.0050.00013.14
7.3.320.0000.00613.15
7.3.310.0030.00316.34
7.3.300.0040.00416.11
7.3.290.0070.00816.19
7.3.280.0070.01216.22
7.3.270.0030.01417.40
7.3.260.0030.01316.38
7.3.250.0060.01216.32
7.3.240.0130.00616.21
7.3.230.0090.00916.39
7.3.210.0100.00716.34
7.3.200.0060.00916.46
7.3.190.0080.00816.23
7.3.180.0060.01016.43
7.3.170.0110.01216.27
7.3.160.0100.00616.19
7.3.130.0090.00915.03
7.3.120.0110.00714.98
7.3.110.0070.01314.59
7.3.100.0030.01314.73
7.3.90.0080.00314.76
7.3.80.0000.01414.75
7.3.70.0080.00814.73
7.3.60.0060.00914.42
7.3.50.0000.00814.90
7.3.40.0030.01514.50
7.3.30.0140.00014.73
7.3.20.0060.00616.55
7.3.10.0030.01216.65
7.3.00.0060.00916.55
7.2.330.0100.00716.45
7.2.320.0080.01516.43
7.2.310.0150.00316.52
7.2.300.0160.00716.50
7.2.290.0070.01316.52
7.2.260.0030.01614.71
7.2.250.0070.01314.93
7.2.240.0080.00814.74
7.2.230.0040.00815.13
7.2.220.0100.00614.91
7.2.210.0000.01415.13
7.2.200.0030.00614.62
7.2.190.0080.00414.93
7.2.180.0040.01114.62
7.2.170.0070.00614.93
7.2.160.0060.00915.04
7.2.150.0040.01416.73
7.2.140.0040.01116.88
7.2.130.0070.00716.93
7.2.120.0060.01216.59
7.2.110.0040.01416.59
7.2.100.0070.00716.81
7.2.90.0070.00716.84
7.2.80.0060.00916.62
7.2.70.0110.00716.80
7.2.60.0020.01116.78
7.2.50.0120.00316.74
7.2.40.0060.00916.69
7.2.30.0030.01216.79
7.2.20.0000.01616.55
7.2.10.0070.01116.85
7.2.00.0080.00917.71
7.1.330.0040.00415.53
7.1.320.0070.01015.95
7.1.310.0060.00915.89
7.1.300.0110.00415.61
7.1.290.0120.00315.79
7.1.280.0080.00415.80
7.1.270.0100.00315.81
7.1.260.0090.00315.79
7.1.250.0090.00315.89
7.1.240.0080.00815.81
7.1.230.0060.01015.87
7.1.220.0130.00315.80
7.1.210.0080.00015.46
7.1.200.0060.00815.70
7.1.190.0030.01015.75
7.1.180.0030.01315.96
7.1.170.0090.00615.83
7.1.160.0110.00315.88
7.1.150.0060.00615.89
7.1.140.0070.00715.99
7.1.130.0090.00615.81
7.1.120.0000.00815.75
7.1.110.0080.00615.99
7.1.100.0110.00317.06
7.1.90.0030.01315.76
7.1.80.0110.00415.62
7.1.70.0070.00516.51
7.1.60.0070.01317.62
7.1.50.0070.00916.42
7.1.40.0070.01015.52
7.1.30.0000.01415.68
7.1.20.0000.01215.92
7.1.10.0040.00815.81
7.1.00.0070.04019.15
7.0.330.0030.00915.26
7.0.320.0040.00815.39
7.0.310.0060.00315.01
7.0.300.0030.01215.36
7.0.290.0080.00615.54
7.0.280.0030.00915.15
7.0.270.0030.00615.52
7.0.260.0060.01215.35
7.0.250.0040.01115.52
7.0.240.0030.00615.28
7.0.230.0070.00715.30
7.0.220.0070.00715.40
7.0.210.0070.00715.32
7.0.200.0070.00715.91
7.0.190.0060.00615.18
7.0.180.0000.01315.29
7.0.170.0080.00415.09
7.0.160.0120.00315.47
7.0.150.0030.01315.23
7.0.140.0060.00915.41
7.0.130.0040.01115.39
7.0.120.0040.00815.52
7.0.110.0060.00815.41
7.0.100.0030.00615.46
7.0.90.0090.00615.44
7.0.80.0040.01115.24
7.0.70.0120.00315.44
7.0.60.0030.02617.62
7.0.50.0020.02716.73
7.0.40.0080.02216.90
7.0.30.0200.04016.73
7.0.20.0190.03016.66
7.0.10.0050.05016.83
7.0.00.0140.02616.92
5.6.400.0000.01213.91
5.6.390.0080.00614.47
5.6.380.0090.00914.39
5.6.370.0050.00514.21
5.6.360.0040.01114.44
5.6.350.0040.01114.01
5.6.340.0060.00914.22
5.6.330.0040.01114.45
5.6.320.0070.00714.61
5.6.310.0100.00614.37
5.6.300.0030.01214.59
5.6.290.0060.00614.41
5.6.280.0050.02017.72
5.6.270.0040.01114.20
5.6.260.0100.00314.33
5.6.250.0030.01014.00
5.6.240.0070.00714.27
5.6.230.0150.00014.27
5.6.220.0100.00314.05
5.6.210.0050.04017.46
5.6.200.0080.03816.23
5.6.190.0120.03517.40
5.6.180.0130.02517.21
5.6.170.0150.03717.30
5.6.160.0050.02517.30
5.6.150.0070.04416.28
5.6.140.0000.04916.22
5.6.130.0020.02716.23
5.6.120.0060.04717.68
5.6.110.0050.04117.73
5.6.100.0100.03817.63
5.6.90.0080.03517.61
5.6.80.0030.04717.14
5.6.70.0000.01114.20
5.6.60.0000.01613.97
5.6.50.0060.00314.35
5.6.40.0000.01014.16
5.6.30.0030.00614.24
5.6.20.0070.00314.26
5.6.10.0090.00614.34
5.6.00.0030.01014.02
5.5.380.0110.00014.16
5.5.370.0080.00414.15
5.5.360.0120.00413.91
5.5.350.0120.02917.27
5.5.340.0090.04015.96
5.5.330.0030.03917.23
5.5.320.0220.03317.20
5.5.310.0120.02917.12
5.5.300.0060.03016.02
5.5.290.0070.02215.91
5.5.280.0050.03517.41
5.5.270.0070.04517.58
5.5.260.0050.04517.52
5.5.250.0050.02817.19
5.5.240.0140.04017.10
5.5.230.0060.00614.23
5.5.220.0120.00313.96
5.5.210.0060.00913.97
5.5.200.0060.00914.13
5.5.190.0100.00314.33
5.5.180.0120.00314.29
5.5.170.0100.00314.09
5.5.160.0120.00314.23
5.5.150.0090.00913.73
5.5.140.0030.01014.21
5.5.130.0060.01214.04
5.5.120.0080.00514.00
5.5.110.0030.01014.16
5.5.100.0110.00414.14
5.5.90.0040.01114.25
5.5.80.0090.00614.14
5.5.70.0060.00614.17
5.5.60.0120.00313.91
5.5.50.0070.01014.22
5.5.40.0070.01013.90
5.5.30.0000.01514.18
5.5.20.0030.01013.96
5.5.10.0000.01414.05
5.5.00.0120.00314.25

preferences:
57.06 ms | 400 KiB | 5 Q