3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { function myFunction() {} const MY_CONSTANT = 0; } namespace B { var_dump( strpos::class, PHP_EOL::class, \A\myFunction::class, \A\MY_CONSTANT::class ); }

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.1.100.0070.00017.34
8.1.90.0000.00717.38
8.1.80.0050.00217.39
8.1.70.0030.00317.41
8.1.60.0000.00817.50
8.1.50.0030.00517.50
8.1.40.0030.00517.40
8.1.30.0000.00817.47
8.1.20.0040.00417.57
8.1.10.0040.00417.35
8.1.00.0030.00517.20
8.0.230.0030.00316.78
8.0.220.0030.00316.77
8.0.210.0040.00416.81
8.0.200.0030.00316.77
8.0.190.0040.00416.88
8.0.180.0040.00416.77
8.0.170.0000.01016.82
8.0.160.0040.00416.77
8.0.150.0050.00316.80
8.0.140.0040.00416.80
8.0.130.0050.00013.22
8.0.120.0040.00416.79
8.0.110.0040.00416.69
8.0.100.0050.00316.63
8.0.90.0050.00216.72
8.0.80.0080.00916.71
8.0.70.0080.00016.88
8.0.60.0040.00416.71
8.0.50.0070.00016.73
8.0.30.0000.02016.81
8.0.20.0130.00717.06
8.0.10.0000.00716.75
8.0.00.0120.00716.74
7.4.300.0030.00316.54
7.4.290.0000.00816.36
7.4.280.0040.00416.52
7.4.270.0000.00716.42
7.4.260.0050.00013.24
7.4.250.0000.00716.38
7.4.240.0020.00516.46
7.4.230.0030.00316.55
7.4.220.0030.00316.58
7.4.210.0080.00816.44
7.4.200.0030.00316.62
7.4.130.0160.00516.45
7.4.120.0130.00716.40
7.4.110.0090.00816.43
7.4.100.0080.00916.34
7.4.90.0070.01116.28
7.4.80.0090.00916.32
7.4.70.0090.00916.47
7.4.60.0070.01016.27
7.4.50.0100.01016.40
7.4.40.0080.01216.35
7.4.30.0070.01316.36
7.4.20.0100.00816.37
7.4.10.0100.00716.20
7.4.00.0080.01116.34
7.3.330.0040.00416.09
7.3.320.0000.00713.19
7.3.310.0050.00316.33
7.3.300.0000.00716.06
7.3.290.0090.00816.21
7.3.260.0050.01416.50
7.3.250.0080.01116.41
7.3.240.0110.00616.41
7.3.230.0020.01516.40
7.3.220.0070.01016.38
7.3.210.0070.01216.17
7.3.200.0150.00516.32
7.3.190.0120.00616.18
7.3.180.0120.00816.36
7.3.170.0080.00816.32
7.3.160.0120.00616.07
7.3.150.0100.00816.35
7.3.140.0070.01116.43
7.3.130.0080.01016.29
7.3.120.0110.00516.30
7.3.110.0050.01016.42
7.3.100.0060.01116.15
7.3.90.0110.00516.40
7.3.80.0080.01316.43
7.3.70.0120.00516.28
7.3.60.0150.00516.24
7.3.50.0090.00816.32
7.3.40.0060.01516.20
7.3.30.0080.01016.36
7.3.20.0080.00916.36
7.3.10.0140.00416.27
7.3.00.0120.00616.32
7.2.340.0090.01016.41
7.2.330.0100.00716.54
7.2.320.0120.00516.14
7.2.310.0090.01116.52
7.2.300.0060.01216.42
7.2.290.0090.00916.45
7.2.280.0090.00916.57
7.2.270.0120.00616.49
7.2.260.0050.01216.57
7.2.250.0080.00916.31
7.2.240.0090.00916.44
7.2.230.0080.01116.39
7.2.220.0160.00516.41
7.2.210.0170.00516.38
7.2.200.0080.01116.46
7.2.190.0110.01116.31
7.2.180.0070.01016.21
7.2.170.0090.00916.36
7.2.160.0110.00716.48
7.2.150.0070.01116.33
7.2.140.0120.00616.54
7.2.130.0130.00516.41
7.2.120.0080.01116.53
7.2.110.0060.01216.46
7.2.100.0140.00616.40
7.2.90.0090.00916.45
7.2.80.0120.00916.51
7.2.70.0130.00816.36
7.2.60.0080.01316.51
7.2.50.0070.01316.31
7.2.40.0120.01016.42
7.2.30.0080.01416.45
7.2.20.0140.00516.43
7.2.10.0120.00716.41
7.2.00.0040.01516.40
7.1.330.0180.01415.52
7.1.320.0250.00715.52
7.1.310.0270.00615.52
7.1.300.0130.01715.52
7.1.290.0230.00615.52
7.1.280.0220.00915.52
7.1.270.0250.00715.52
7.1.260.0200.01415.52
7.1.250.0230.00315.52
7.1.240.0190.01115.52
7.1.230.0220.00815.52
7.1.220.0160.01115.52
7.1.210.0250.00415.52
7.1.200.0290.01715.52
7.1.190.0250.00615.52
7.1.180.0180.00915.52
7.1.170.0220.01015.52
7.1.160.0180.01115.54
7.1.150.0250.00615.52
7.1.140.0250.00415.52
7.1.130.0220.01515.52
7.1.120.0420.01515.52
7.1.110.0300.00915.52
7.1.100.0260.01315.52
7.1.90.0210.01715.54
7.1.80.0290.00515.52
7.1.70.0320.00215.53
7.1.60.0440.00615.61
7.1.50.0190.01515.53
7.1.40.0250.01315.52
7.1.30.0220.01315.52
7.1.20.0310.01215.52
7.1.10.0260.01515.52
7.1.00.0260.00815.52
7.0.330.0180.01115.52
7.0.320.0150.01215.52
7.0.310.0190.01415.52
7.0.300.0180.01115.52
7.0.290.0150.01015.52
7.0.280.0250.00915.52
7.0.270.0200.00915.52
7.0.260.0330.00315.52
7.0.250.0310.00615.52
7.0.240.0240.00815.52
7.0.230.0220.01415.52
7.0.220.0260.00815.52
7.0.210.0230.01015.52
7.0.200.0340.00015.52
7.0.190.0240.00815.52
7.0.180.0230.00815.52
7.0.170.0180.01415.52
7.0.160.0240.00815.52
7.0.150.0270.00515.52
7.0.140.0100.01915.52
7.0.130.0280.00915.52
7.0.120.0150.01815.52
7.0.110.0240.00815.52
7.0.100.0330.00715.52
7.0.90.0250.00315.52
7.0.80.0200.01015.52
7.0.70.0210.01215.52
7.0.60.0230.00815.52
7.0.50.0290.01115.52
7.0.40.0100.01615.52
7.0.30.0260.00915.52
7.0.20.0250.00915.52
7.0.10.0290.00815.52
7.0.00.0230.00715.52
5.6.400.0280.00815.72
5.6.390.0130.01615.70
5.6.380.0170.01215.79
5.6.370.0200.00916.00
5.6.360.0170.01215.65
5.6.350.0200.01115.95
5.6.340.0170.01215.52
5.6.330.0280.00415.53
5.6.320.0230.01715.79
5.6.310.0250.01115.52
5.6.300.0280.00415.81
5.6.290.0160.02016.00
5.6.280.0200.01215.84
5.6.270.0300.00715.63
5.6.260.0130.02115.88
5.6.250.0230.01215.69
5.6.240.0200.01015.82
5.6.230.0210.01015.61
5.6.220.0260.00915.97
5.6.210.0170.01715.64
5.6.200.0180.01815.81
5.6.190.0200.01015.84
5.6.180.0190.01015.86
5.6.170.0090.02215.68
5.6.160.0210.01015.72
5.6.150.0180.01415.77
5.6.140.0180.01415.80
5.6.130.0190.01115.85
5.6.120.0280.00415.77
5.6.110.0170.01215.96
5.6.100.0230.00715.52
5.6.90.0160.01615.86
5.6.80.0260.00415.66
5.6.70.0230.00915.89
5.6.60.0190.01115.62
5.6.50.0150.01515.57
5.6.40.0240.01015.84
5.6.30.0220.01315.77
5.6.20.0220.00615.72
5.6.10.0120.02015.75
5.6.00.0190.01115.53
5.5.380.0190.01515.72
5.5.370.0160.01415.60
5.5.360.0340.00616.00
5.5.350.0220.00615.70
5.5.340.0220.00515.65
5.5.330.0150.01515.61
5.5.320.0210.00915.79
5.5.310.0220.01115.93
5.5.300.0220.01015.94
5.5.290.0240.00915.74
5.5.280.0170.01215.74
5.5.270.0160.01615.69
5.5.260.0260.00515.71
5.5.250.0180.01415.52
5.5.240.0230.01315.66
5.5.230.0220.00715.56
5.5.220.0200.01415.79
5.5.210.0170.01215.68
5.5.200.0230.01015.64
5.5.190.0230.01015.72
5.5.180.0210.01015.71
5.5.170.0240.01015.70
5.5.160.0200.01115.68
5.5.150.0210.01115.71
5.5.140.0200.01015.70
5.5.130.0230.00915.64
5.5.120.0210.01115.63
5.5.110.0190.01215.52
5.5.100.0190.01015.56
5.5.90.0210.00915.63
5.5.80.0130.01415.71
5.5.70.0310.00015.80
5.5.60.0160.01615.52
5.5.50.0190.00815.54
5.5.40.0100.01915.76
5.5.30.0130.02215.62
5.5.20.0240.00315.63
5.5.10.0240.00515.52
5.5.00.0110.01815.63
5.4.450.0170.00715.52
5.4.440.0110.01115.52
5.4.430.0220.00315.52
5.4.420.0180.00615.52
5.4.410.0130.01315.52
5.4.400.0150.00815.52
5.4.390.0170.00415.52
5.4.380.0070.01815.52
5.4.370.0180.00615.52
5.4.360.0190.00715.52
5.4.350.0170.00815.52
5.4.340.0150.00715.52
5.4.330.0210.00615.52
5.4.320.0210.00815.52
5.4.310.0150.00915.52
5.4.300.0160.00615.52
5.4.290.0120.00915.52
5.4.280.0130.00915.52
5.4.270.0180.00615.52
5.4.260.0240.00315.52
5.4.250.0150.00815.52
5.4.240.0150.00815.52
5.4.230.0170.00915.52
5.4.220.0120.01215.52
5.4.210.0190.00415.52
5.4.200.0170.01015.52
5.4.190.0190.00315.52
5.4.180.0180.00415.52
5.4.170.0190.00315.52
5.4.160.0200.00615.52
5.4.150.0140.01115.52
5.4.140.0160.00815.52
5.4.130.0140.00715.52
5.4.120.0190.00215.52
5.4.110.0110.01115.52
5.4.100.0140.00915.52
5.4.90.0160.01015.52
5.4.80.0130.01015.52
5.4.70.0190.00315.52
5.4.60.0170.01015.52
5.4.50.0190.00615.52
5.4.40.0170.00715.52
5.4.30.0120.00915.52
5.4.20.0190.00415.52
5.4.10.0150.00615.52
5.4.00.0130.01015.52
5.3.290.0310.00315.52
5.3.280.0150.00815.52
5.3.270.0160.00715.52
5.3.260.0190.00315.52
5.3.250.0210.00415.52
5.3.240.0130.01315.52
5.3.230.0140.00915.52
5.3.220.0160.00515.52
5.3.210.0110.01115.52
5.3.200.0180.00815.52
5.3.190.0190.00615.52
5.3.180.0150.01115.52
5.3.170.0150.00815.52
5.3.160.0240.00415.52
5.3.150.0140.01115.52
5.3.140.0140.01015.52
5.3.130.0210.00515.52
5.3.120.0250.00015.52
5.3.110.0130.01015.52
5.3.100.0150.00815.52
5.3.90.0160.00615.52
5.3.80.0130.01315.52
5.3.70.0100.01015.52
5.3.60.0180.00515.52
5.3.50.0190.00315.52
5.3.40.0140.00715.52
5.3.30.0160.01115.52
5.3.20.0110.01215.52
5.3.10.0150.01015.52
5.3.00.0110.01415.52
5.2.170.0000.01915.52
5.2.160.0140.00815.52
5.2.150.0000.01815.52
5.2.140.0120.00615.52
5.2.130.0120.00815.52
5.2.120.0090.01115.52
5.2.110.0130.00615.52
5.2.100.0090.01415.52
5.2.90.0100.01015.52
5.2.80.0120.00515.52
5.2.70.0040.01615.52
5.2.60.0110.00815.52
5.2.50.0100.01015.52
5.2.40.0120.00915.52
5.2.30.0160.00515.52
5.2.20.0070.01315.52
5.2.10.0130.00515.52
5.2.00.0080.01215.52
5.1.60.0060.01115.52
5.1.50.0130.00315.52
5.1.40.0100.00515.52
5.1.30.0130.00315.52
5.1.20.0110.00615.52
5.1.10.0100.00515.52
5.1.00.0090.00915.52
5.0.50.0090.00515.52
5.0.40.0110.00315.52
5.0.30.0050.00915.52
5.0.20.0140.00415.52
5.0.10.0090.00415.52
5.0.00.0060.00915.52
4.4.90.0040.00515.52
4.4.80.0090.00015.52
4.4.70.0050.00515.52
4.4.60.0060.00315.52
4.4.50.0080.00015.52
4.4.40.0060.00315.52
4.4.30.0060.00315.52
4.4.20.0120.00015.52
4.4.10.0050.00515.52
4.4.00.0080.00015.52
4.3.110.0000.01115.52
4.3.100.0050.00515.52
4.3.90.0090.00315.52
4.3.80.0000.01015.52
4.3.70.0040.00415.52
4.3.60.0070.00315.52
4.3.50.0050.00515.52
4.3.40.0060.00315.52
4.3.30.0050.00215.52
4.3.20.0070.00015.52
4.3.10.0000.00715.52
4.3.00.0000.00715.52

preferences:
12.94 ms | 406 KiB | 5 Q