3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Sample; var_dump(is_resource(STDOUT)); function f1($f) { fwrite($f, "1 called!\n"); } function f2(\resource $f) { fwrite($f, "2 called!\n"); } function f3(resource $f) { fwrite($f, "3 called!\n"); } f1(STDOUT); f2(STDOUT); f3(STDOUT);

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.0090.00616.50
8.3.50.0120.00616.29
8.3.40.0140.00018.74
8.3.30.0110.00318.68
8.3.20.0000.00820.34
8.3.10.0040.00423.53
8.3.00.0040.00422.09
8.2.180.0100.01016.63
8.2.170.0090.00622.96
8.2.160.0040.01419.21
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00419.24
8.2.120.0040.00426.35
8.2.110.0030.00621.14
8.2.100.0060.00618.03
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0090.00017.93
8.2.50.0060.00318.10
8.2.40.0050.00220.23
8.2.30.0000.00821.02
8.2.20.0060.00318.10
8.2.10.0090.00018.04
8.2.00.0070.00017.99
8.1.280.0140.00725.92
8.1.270.0030.00521.98
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00721.92
8.1.230.0070.00420.96
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0030.00518.56
8.1.160.0030.00518.82
8.1.150.0040.00420.53
8.1.140.0040.00419.43
8.1.130.0030.00318.76
8.1.120.0030.00617.34
8.1.110.0000.00717.33
8.1.100.0050.00317.41
8.1.90.0000.00717.32
8.1.80.0000.00717.29
8.1.70.0030.00317.42
8.1.60.0060.00317.51
8.1.50.0000.00817.38
8.1.40.0000.00917.43
8.1.30.0000.00817.50
8.1.20.0000.01517.54
8.1.10.0040.00417.54
8.1.00.0070.00017.46
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.36
8.0.270.0000.00717.21
8.0.260.0030.00316.80
8.0.250.0000.00617.04
8.0.240.0040.00417.02
8.0.230.0000.00816.96
8.0.220.0030.00316.84
8.0.210.0030.00316.97
8.0.200.0030.00316.90
8.0.190.0000.00916.99
8.0.180.0030.00616.93
8.0.170.0040.00416.82
8.0.160.0040.00416.99
8.0.150.0040.00416.79
8.0.140.0030.00316.90
8.0.130.0000.00613.41
8.0.120.0040.00416.92
8.0.110.0000.00716.89
8.0.100.0040.00417.01
8.0.90.0000.00816.79
8.0.80.0060.01616.90
8.0.70.0070.00016.73
8.0.60.0040.00416.84
8.0.50.0040.00416.98
8.0.30.0090.00817.03
8.0.20.0110.01017.40
8.0.10.0000.00817.13
8.0.00.0140.00316.61
7.4.330.0030.00315.55
7.4.320.0000.00716.46
7.4.300.0040.00416.52
7.4.290.0050.00316.59
7.4.280.0090.00016.45
7.4.270.0030.00316.44
7.4.260.0000.00716.50
7.4.250.0030.00316.32
7.4.240.0030.00316.45
7.4.230.0000.00716.60
7.4.220.0090.00916.52
7.4.210.0160.00316.36
7.4.200.0030.00316.55
7.4.160.0100.00816.32
7.4.150.0100.00717.40
7.4.140.0140.00717.86
7.4.130.0110.01216.73
7.4.120.0080.01116.60
7.4.110.0090.00816.38
7.4.100.0120.00616.48
7.4.90.0110.00816.60
7.4.80.0080.01319.39
7.4.70.0120.00416.64
7.4.60.0140.00316.40
7.4.50.0030.01016.59
7.4.40.0080.00816.67
7.4.30.0160.00416.70
7.4.10.0070.01014.95
7.4.00.0020.01314.89
7.3.330.0030.00313.34
7.3.320.0000.00513.29
7.3.310.0000.00716.45
7.3.300.0000.00716.33
7.3.290.0110.00716.29
7.3.280.0090.00816.30
7.3.270.0140.00417.40
7.3.260.0060.01116.58
7.3.250.0110.00716.40
7.3.240.0110.00816.44
7.3.230.0090.00916.40
7.3.210.0030.01316.60
7.3.200.0090.00616.37
7.3.190.0060.01216.32
7.3.180.0070.01416.34
7.3.170.0040.01316.44
7.3.160.0100.00616.47
7.3.130.0030.01414.85
7.3.120.0090.00714.89
7.3.110.0050.01114.95
7.3.100.0030.00914.74
7.3.90.0050.00914.81
7.3.80.0090.00314.78
7.3.70.0100.00714.82
7.3.60.0130.00314.85
7.3.50.0050.00914.64
7.3.40.0030.01014.64
7.3.30.0050.00814.83
7.3.20.0060.00816.66
7.3.10.0080.00816.41
7.3.00.0070.01016.65
7.2.330.0090.00916.64
7.2.320.0100.01016.45
7.2.310.0140.00716.54
7.2.300.0100.00716.64
7.2.290.0080.00916.68
7.2.260.0060.01314.75
7.2.250.0030.01615.14
7.2.240.0060.00814.92
7.2.230.0050.01015.02
7.2.220.0050.01114.80
7.2.210.0030.00814.90
7.2.200.0120.00314.97
7.2.190.0030.01014.78
7.2.180.0070.00614.97
7.2.170.0060.00814.94
7.2.160.0070.00614.89
7.2.150.0020.01016.79
7.2.140.0060.00816.67
7.2.130.0060.01116.76
7.2.120.0060.00916.77
7.2.110.0070.00516.83
7.2.100.0050.01216.91
7.2.90.0050.00916.80
7.2.80.0060.01016.94
7.2.70.0090.00916.97
7.2.60.0050.00916.64
7.2.50.0090.00716.83
7.2.40.0080.00716.93
7.2.30.0060.01116.79
7.2.20.0020.01316.80
7.2.10.0070.00816.79
7.2.00.0030.01017.44
7.1.330.0040.01215.79
7.1.320.0050.00915.75
7.1.310.0050.00815.84
7.1.300.0070.00515.68
7.1.290.0080.00315.70
7.1.280.0090.00415.65
7.1.270.0050.01215.53
7.1.260.0030.00715.55
7.1.250.0090.00415.76
7.1.240.0060.00815.48
7.1.230.0050.01015.58
7.1.220.0080.00615.72
7.1.210.0050.00915.72
7.1.200.0070.00615.53
7.1.190.0100.00515.57
7.1.180.0090.00615.68
7.1.170.0060.00715.40
7.1.160.0090.00515.58
7.1.150.0120.00215.41
7.1.140.0070.00515.69
7.1.130.0030.00915.60
7.1.120.0100.00315.77
7.1.110.0110.00515.74
7.1.100.0060.00816.52
7.1.90.0030.00815.79
7.1.80.0050.00515.67
7.1.70.0080.00616.01
7.1.60.0120.00622.18
7.1.50.0120.00921.99
7.1.40.0130.01021.93
7.1.30.0120.01121.92
7.1.20.0120.00921.99
7.1.10.0100.00615.92
7.1.00.0080.00515.95
7.0.330.0090.00315.19
7.0.320.0080.00415.29
7.0.310.0090.00315.08
7.0.300.0080.00515.21
7.0.290.0090.00415.35
7.0.280.0020.00915.19
7.0.270.0030.00915.31
7.0.260.0060.00615.37
7.0.250.0060.00515.21
7.0.240.0060.00515.19
7.0.230.0060.00915.14
7.0.220.0050.01115.34
7.0.210.0060.00915.23
7.0.200.0060.00615.58
7.0.190.0030.00915.69
7.0.180.0060.00915.68
7.0.170.0070.00715.73
7.0.160.0020.01115.71
7.0.150.0080.00715.55
7.0.140.0060.00815.66
7.0.130.0050.00915.71
7.0.120.0060.01015.77
7.0.110.0060.00815.62
7.0.100.0080.00715.73
7.0.90.0080.00715.77
7.0.80.0100.00715.69
7.0.70.0060.00715.67
7.0.60.0020.01315.67
7.0.50.0060.00915.80
7.0.40.0060.01014.47
7.0.30.0020.00914.45
7.0.20.0050.00914.45
7.0.10.0040.00814.39
7.0.00.0080.00514.48
5.6.400.0070.00714.19
5.6.390.0060.00614.50
5.6.380.0050.00714.08
5.6.370.0070.00714.08
5.6.360.0080.00814.52
5.6.350.0030.01014.11
5.6.340.0090.00614.14
5.6.330.0070.00314.14
5.6.320.0000.00914.20
5.6.310.0100.00313.99
5.6.300.0120.00314.52
5.6.290.0030.01414.12
5.6.280.0000.01414.20
5.6.270.0150.00014.33
5.6.260.0070.00414.49
5.6.250.0040.01214.00
5.6.240.0000.01414.33
5.6.230.0030.00914.02
5.6.220.0040.01114.33
5.6.210.0060.01213.98
5.6.200.0070.01014.23
5.6.190.0070.00714.15
5.6.180.0000.01114.06
5.6.170.0100.00314.32
5.6.160.0110.00613.92
5.6.150.0030.01213.91
5.6.140.0060.00914.46
5.6.130.0060.01214.20
5.6.120.0030.00714.12
5.6.110.0030.00914.33
5.6.100.0130.00314.09
5.6.90.0080.00414.12
5.6.80.0060.00614.16
5.6.70.0030.00613.90
5.6.60.0070.00314.20
5.6.50.0000.01513.94
5.6.40.0080.00513.86
5.6.30.0040.00814.10
5.6.20.0110.00414.39
5.6.10.0000.00914.19
5.6.00.0070.00714.04

preferences:
48.61 ms | 401 KiB | 5 Q