3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Sample; function f1($f) { fwrite($f, "1 called!\n"); } function f2(\resource $f) { fwrite($f, "2 called!\n"); } f1(STDOUT); f2(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.70.0040.01118.30
8.3.60.0060.00916.88
8.3.50.0070.01216.61
8.3.40.0110.00418.73
8.3.30.0070.00718.83
8.3.20.0040.00420.34
8.3.10.0060.00323.70
8.3.00.0000.00822.09
8.2.190.0140.00016.63
8.2.180.0090.01216.38
8.2.170.0120.00322.96
8.2.160.0030.01019.21
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00421.00
8.2.120.0000.00726.35
8.2.110.0070.00320.39
8.2.100.0040.00717.96
8.2.90.0080.00019.21
8.2.80.0000.00817.97
8.2.70.0050.00317.75
8.2.60.0060.00317.79
8.2.50.0050.00318.10
8.2.40.0090.00020.64
8.2.30.0000.00820.94
8.2.20.0080.00018.03
8.2.10.0040.00418.04
8.2.00.0030.00618.11
8.1.280.0140.00325.92
8.1.270.0080.00023.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0070.01123.99
8.1.230.0120.00017.76
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0030.00618.99
8.1.150.0050.00320.60
8.1.140.0050.00219.42
8.1.130.0020.00518.87
8.1.120.0000.01017.36
8.1.110.0070.00017.23
8.1.100.0040.00417.38
8.1.90.0040.00417.41
8.1.80.0040.00417.27
8.1.70.0030.00517.29
8.1.60.0050.00517.48
8.1.50.0050.00317.37
8.1.40.0040.00417.45
8.1.30.0000.00817.55
8.1.20.0000.00917.52
8.1.10.0030.00517.50
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0000.00718.45
8.0.270.0070.00017.25
8.0.260.0070.00016.74
8.0.250.0030.00317.04
8.0.240.0080.00017.03
8.0.230.0030.00517.05
8.0.220.0030.00316.98
8.0.210.0000.00716.90
8.0.200.0040.00417.07
8.0.190.0080.00017.01
8.0.180.0050.00317.03
8.0.170.0040.00416.93
8.0.160.0040.00416.85
8.0.150.0040.00416.85
8.0.140.0030.00416.88
8.0.130.0060.00013.42
8.0.120.0040.00416.82
8.0.110.0040.00416.80
8.0.100.0050.00316.89
8.0.90.0030.00516.84
8.0.80.0110.01117.00
8.0.70.0070.00016.98
8.0.60.0050.00316.95
8.0.50.0050.00216.93
8.0.30.0070.01317.17
8.0.20.0110.00817.40
8.0.10.0000.00817.03
8.0.00.0100.00716.68
7.4.330.0030.00315.55
7.4.320.0030.00316.44
7.4.300.0030.00316.29
7.4.290.0030.00316.43
7.4.280.0040.00416.57
7.4.270.0070.00016.36
7.4.260.0070.00016.38
7.4.250.0070.00016.41
7.4.240.0030.00316.46
7.4.230.0030.00316.29
7.4.220.0080.01216.51
7.4.210.0070.00716.56
7.4.200.0000.00716.27
7.4.160.0080.00916.50
7.4.150.0170.00017.40
7.4.140.0170.00517.86
7.4.130.0110.02516.56
7.4.120.0100.01016.49
7.4.110.0070.01016.32
7.4.100.0090.00916.41
7.4.90.0100.00716.48
7.4.80.0140.01319.39
7.4.70.0060.00916.54
7.4.60.0130.00316.54
7.4.50.0030.01216.27
7.4.40.0130.00316.45
7.4.30.0000.01716.33
7.4.00.0060.01214.81
7.3.330.0050.00213.13
7.3.320.0000.00513.07
7.3.310.0000.00716.33
7.3.300.0040.00416.30
7.3.290.0080.00916.29
7.3.280.0090.00816.28
7.3.270.0160.00317.40
7.3.260.0120.00616.46
7.3.250.0100.00616.37
7.3.240.0150.00616.40
7.3.230.0100.00716.28
7.3.210.0120.00316.37
7.3.200.0090.00916.32
7.3.190.0100.01116.48
7.3.180.0050.01116.59
7.3.170.0030.01316.54
7.3.160.0090.00916.40
7.2.330.0130.00316.72
7.2.320.0110.01116.59
7.2.310.0130.00316.73
7.2.300.0090.00916.72
7.2.290.0130.00416.55
7.2.60.0130.00716.63
7.1.200.0070.00715.76
7.1.100.0040.00718.29
7.1.70.0000.00717.07
7.1.60.0040.00817.16
7.1.50.0000.01016.98
7.1.40.0000.02116.98
7.1.30.0040.00716.98
7.1.20.0070.01316.98
7.1.10.0030.01616.98
7.1.00.0040.00416.98
7.0.200.0000.00716.98
7.0.190.0000.01016.98
7.0.180.0070.01016.98
7.0.170.0030.01416.98
7.0.160.0060.00916.98
7.0.150.0000.00716.98
7.0.140.0030.00716.98
7.0.130.0070.00016.98
7.0.120.0000.00816.98
7.0.110.0050.00316.98
7.0.100.0030.00516.98
7.0.90.0100.00716.98
7.0.80.0040.00416.98
7.0.70.0030.00616.98
7.0.60.0040.00416.98
7.0.50.0000.00816.98
7.0.40.0030.00616.98
7.0.30.0100.00016.98
7.0.20.0080.00016.98
7.0.10.0000.00816.98
7.0.00.0070.00716.98

preferences:
65.23 ms | 401 KiB | 5 Q