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.0040.01116.88
8.3.50.0150.00316.29
8.3.40.0110.00418.79
8.3.30.0070.00718.66
8.3.20.0040.00422.05
8.3.10.0040.00423.61
8.3.00.0080.00021.94
8.2.180.0150.00616.63
8.2.170.0150.00022.96
8.2.160.0090.00619.00
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00419.21
8.2.120.0040.00426.35
8.2.110.0030.00620.43
8.2.100.0000.01118.03
8.2.90.0040.00419.27
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0050.00318.04
8.2.50.0030.00618.10
8.2.40.0080.00020.59
8.2.30.0040.00421.04
8.2.20.0020.00518.11
8.2.10.0040.00418.06
8.2.00.0000.00718.04
8.1.280.0090.01225.92
8.1.270.0040.00421.91
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00623.88
8.1.230.0070.00417.71
8.1.220.0030.00617.76
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.43
8.1.160.0070.00018.95
8.1.150.0040.00420.54
8.1.140.0000.00719.50
8.1.130.0080.00018.82
8.1.120.0030.00617.40
8.1.110.0040.00417.37
8.1.100.0040.00417.28
8.1.90.0000.00717.41
8.1.80.0070.00017.29
8.1.70.0040.00417.39
8.1.60.0060.00317.58
8.1.50.0030.00517.35
8.1.40.0050.00317.38
8.1.30.0040.00417.62
8.1.20.0000.01117.55
8.1.10.0080.00017.42
8.1.00.0040.00417.51
8.0.300.0050.00218.77
8.0.290.0030.00616.88
8.0.280.0030.00418.41
8.0.270.0000.00717.26
8.0.260.0000.00716.89
8.0.250.0040.00417.02
8.0.240.0000.00816.93
8.0.230.0000.00717.05
8.0.220.0040.00416.86
8.0.210.0070.00016.95
8.0.200.0000.00616.98
8.0.190.0030.00616.89
8.0.180.0030.00716.99
8.0.170.0000.00816.96
8.0.160.0030.00417.00
8.0.150.0040.00417.00
8.0.140.0040.00416.97
8.0.130.0030.00313.39
8.0.120.0040.00416.86
8.0.110.0000.00716.75
8.0.100.0040.00416.91
8.0.90.0050.00317.07
8.0.80.0130.00616.91
8.0.70.0040.00416.97
8.0.60.0080.00016.77
8.0.50.0000.00816.75
8.0.30.0100.01017.11
8.0.20.0160.01217.40
8.0.10.0040.00416.87
8.0.00.0100.00716.70
7.4.330.0020.00215.55
7.4.320.0030.00316.32
7.4.300.0030.00316.57
7.4.290.0080.00016.46
7.4.280.0050.00316.55
7.4.270.0000.00716.56
7.4.260.0030.00316.56
7.4.250.0030.00316.44
7.4.240.0000.00716.45
7.4.230.0030.00316.54
7.4.220.0100.01016.41
7.4.210.0070.00716.41
7.4.200.0000.00716.65
7.4.160.0060.01116.56
7.4.150.0070.01317.40
7.4.140.0100.01017.86
7.4.130.0150.00916.36
7.4.120.0050.01316.54
7.4.110.0070.01016.48
7.4.100.0140.00716.52
7.4.90.0090.00916.66
7.4.80.0100.01319.39
7.4.70.0110.00616.30
7.4.60.0080.00816.57
7.4.50.0000.01116.44
7.4.40.0060.01016.68
7.4.30.0110.00916.39
7.4.10.0130.00715.11
7.4.00.0050.01314.92
7.3.330.0070.00013.28
7.3.320.0050.00013.34
7.3.310.0030.00316.34
7.3.300.0030.00316.33
7.3.290.0100.00316.30
7.3.280.0100.00716.31
7.3.270.0100.00717.40
7.3.260.0120.00516.52
7.3.250.0090.01016.55
7.3.240.0120.00816.48
7.3.230.0130.00316.49
7.3.210.0060.01116.29
7.3.200.0080.01116.18
7.3.190.0120.00916.47
7.3.180.0140.00316.61
7.3.170.0100.00716.50
7.3.160.0060.01016.43
7.3.130.0100.01014.89
7.3.120.0030.01014.80
7.3.110.0070.01314.79
7.3.100.0080.00814.82
7.3.90.0060.00314.76
7.3.80.0030.01014.89
7.3.70.0090.00614.74
7.3.60.0000.01114.68
7.3.50.0050.00514.96
7.3.40.0080.00614.72
7.3.30.0030.00614.68
7.3.20.0080.00416.75
7.3.10.0060.00716.42
7.3.00.0030.00916.75
7.2.330.0070.01016.80
7.2.320.0130.00616.62
7.2.310.0140.00716.81
7.2.300.0090.00816.42
7.2.290.0140.00616.73
7.2.260.0160.00614.99
7.2.250.0110.00715.13
7.2.240.0090.00615.14
7.2.230.0030.01314.93
7.2.220.0030.01014.80
7.2.210.0000.01315.13
7.2.200.0000.00915.12
7.2.190.0040.01115.07
7.2.180.0080.00415.13
7.2.170.0030.01415.05
7.2.160.0090.00614.79
7.2.150.0070.00316.95
7.2.140.0030.00616.73
7.2.130.0050.00917.04
7.2.120.0040.01116.74
7.2.110.0030.01016.62
7.2.100.0050.01216.89
7.2.90.0070.00416.79
7.2.80.0090.00716.73
7.2.70.0030.01116.97
7.2.60.0070.00316.88
7.2.50.0060.00916.88
7.2.40.0090.00916.96
7.2.30.0080.00816.88
7.2.20.0080.00616.88
7.2.10.0080.00716.85
7.2.00.0060.00717.48
7.1.330.0120.00015.69
7.1.320.0060.01215.81
7.1.310.0110.00315.83
7.1.300.0070.00715.76
7.1.290.0040.00715.59
7.1.280.0030.00615.61
7.1.270.0050.00515.74
7.1.260.0030.01015.74
7.1.250.0040.00915.59
7.1.240.0030.00615.57
7.1.230.0040.00415.82
7.1.220.0110.00315.55
7.1.210.0030.01315.55
7.1.200.0030.00915.63
7.1.190.0040.00815.66
7.1.180.0030.00515.63
7.1.170.0090.00415.84
7.1.160.0090.00915.63
7.1.150.0030.01015.80
7.1.140.0000.01215.56
7.1.130.0000.01315.55
7.1.120.0080.00415.78
7.1.110.0070.00715.65
7.1.100.0030.00816.75
7.1.90.0090.00315.83
7.1.80.0120.00315.88
7.1.70.0120.00616.45
7.1.60.0140.00925.52
7.1.50.0150.00825.15
7.1.40.0100.00925.00
7.1.30.0130.01125.11
7.1.20.0120.01125.06
7.1.10.0040.00716.22
7.1.00.0070.00716.14
7.0.330.0110.00415.39
7.0.320.0090.00315.59
7.0.310.0030.01015.39
7.0.300.0030.01315.13
7.0.290.0060.00915.16
7.0.280.0060.00615.20
7.0.270.0040.00415.36
7.0.260.0100.00315.13
7.0.250.0110.00315.50
7.0.240.0040.00415.39
7.0.230.0100.00715.38
7.0.220.0060.00615.23
7.0.210.0040.00715.36
7.0.200.0050.00916.09
7.0.190.0080.00416.13
7.0.180.0060.00715.67
7.0.170.0050.01115.67
7.0.160.0060.00815.81
7.0.150.0020.01215.84
7.0.140.0030.00715.72
7.0.130.0060.00516.01
7.0.120.0000.01215.84
7.0.110.0050.00915.96
7.0.100.0040.00715.80
7.0.90.0020.00915.90
7.0.80.0030.00915.73
7.0.70.0080.00415.82
7.0.60.0030.01015.81
7.0.50.0050.00815.89
7.0.40.0050.00914.84
7.0.30.0060.00615.10
7.0.20.0040.01014.89
7.0.10.0050.00914.94
7.0.00.0100.00514.87
5.6.400.0030.00614.30
5.6.390.0090.00614.46
5.6.380.0030.01314.16
5.6.370.0030.00913.88
5.6.360.0060.00313.97
5.6.350.0080.00014.43
5.6.340.0000.00914.11
5.6.330.0030.00614.05
5.6.320.0000.01014.35
5.6.310.0000.01214.16
5.6.300.0000.01514.13
5.6.290.0040.00414.34
5.6.280.0000.01114.30
5.6.270.0000.01414.46
5.6.260.0030.00714.16
5.6.250.0070.00714.42
5.6.240.0070.00714.47
5.6.230.0100.00314.20
5.6.220.0100.00314.12
5.6.210.0100.00314.01
5.6.200.0000.01514.40
5.6.190.0040.00414.02
5.6.180.0110.00314.16
5.6.170.0110.00414.35
5.6.160.0100.00314.00
5.6.150.0000.01414.25
5.6.140.0060.00613.89
5.6.130.0000.01113.99
5.6.120.0040.00414.38
5.6.110.0090.00014.29
5.6.100.0000.01314.29
5.6.90.0090.00614.20
5.6.80.0040.00814.28
5.6.70.0060.00614.13
5.6.60.0070.00714.08
5.6.50.0060.00314.04
5.6.40.0040.00414.20
5.6.30.0000.00814.34
5.6.20.0050.00514.32
5.6.10.0040.01114.20
5.6.00.0040.00714.15

preferences:
63.51 ms | 400 KiB | 5 Q