3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test implements Countable{ public function firstFunction(){ } public function count(){ return 42; } } $test = new test(); echo count($test);

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.0100.01016.38
8.3.50.0030.01017.99
8.3.40.0110.00418.48
8.3.30.0110.00418.57
8.3.20.0040.00420.33
8.3.10.0040.00423.64
8.3.00.0070.00023.61
8.2.180.0140.00425.92
8.2.170.0040.01119.04
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0070.00822.12
8.2.100.0080.00418.09
8.2.90.0050.00319.88
8.2.80.0050.00318.04
8.2.70.0050.00317.67
8.2.60.0060.00318.16
8.2.50.0090.00018.20
8.2.40.0000.00720.61
8.2.30.0030.00619.12
8.2.20.0040.00417.98
8.2.10.0030.00717.93
8.2.00.0040.00418.09
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0040.00422.06
8.1.230.0040.00719.10
8.1.220.0100.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0090.00018.10
8.1.170.0000.00718.57
8.1.160.0020.00518.94
8.1.150.0040.00420.72
8.1.140.0040.00417.70
8.1.130.0040.00418.86
8.1.120.0030.00317.38
8.1.110.0000.00817.44
8.1.100.0000.00817.33
8.1.90.0000.00717.34
8.1.80.0030.00517.35
8.1.70.0000.00817.44
8.1.60.0000.00817.47
8.1.50.0090.00017.57
8.1.40.0070.00417.40
8.1.30.0040.00417.53
8.1.20.0060.00317.63
8.1.10.0040.00417.55
8.1.00.0000.00717.39
8.0.300.0000.00719.70
8.0.290.0000.00916.63
8.0.280.0040.00418.45
8.0.270.0000.00716.76
8.0.260.0030.00316.84
8.0.250.0060.00016.93
8.0.240.0050.00316.84
8.0.230.0030.00316.98
8.0.220.0000.00716.73
8.0.210.0030.00316.77
8.0.200.0040.00416.90
8.0.190.0050.00517.00
8.0.180.0000.00716.79
8.0.170.0040.00416.87
8.0.160.0000.00716.88
8.0.150.0030.00316.79
8.0.140.0050.00516.79
8.0.130.0050.00513.27
8.0.120.0050.00316.73
8.0.110.0070.00016.77
8.0.100.0040.00416.75
8.0.90.0040.00416.83
8.0.80.0060.01216.84
8.0.70.0000.00816.91
8.0.60.0000.00816.84
8.0.50.0070.00016.89
8.0.30.0110.00617.11
8.0.20.0090.01317.40
8.0.10.0040.00416.96
8.0.00.0090.00916.66
7.4.330.0050.00016.72
7.4.320.0060.00016.58
7.4.300.0000.00616.34
7.4.290.0070.00016.59
7.4.280.0040.00416.43
7.4.270.0030.00316.52
7.4.260.0050.00316.47
7.4.250.0070.00016.38
7.4.240.0000.00716.53
7.4.230.0030.00316.59
7.4.220.0030.02216.66
7.4.210.0000.01416.65
7.4.200.0030.00316.59
7.4.160.0140.01016.47
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0130.00316.57
7.4.120.0100.00916.45
7.4.110.0030.01316.46
7.4.100.0120.00616.35
7.4.90.0130.00316.57
7.4.80.0080.00819.39
7.4.70.0120.01016.33
7.4.60.0110.01116.45
7.4.50.0070.00716.38
7.4.40.0080.00816.61
7.4.30.0120.00316.57
7.4.10.0050.01115.28
7.4.00.0080.00915.30
7.3.330.0000.00513.10
7.3.320.0000.00513.26
7.3.310.0050.00216.27
7.3.300.0030.00316.16
7.3.290.0090.00916.17
7.3.280.0080.00816.24
7.3.270.0090.00917.40
7.3.260.0110.00716.41
7.3.250.0140.00516.37
7.3.240.0150.00716.37
7.3.230.0100.01116.44
7.3.210.0070.01016.41
7.3.200.0160.00616.47
7.3.190.0170.00016.51
7.3.180.0000.01616.32
7.3.170.0060.01316.31
7.3.160.0150.00816.32
7.3.130.0100.00915.30
7.3.120.0090.00815.24
7.3.110.0090.00715.12
7.3.100.0090.00714.98
7.3.90.0050.00914.88
7.3.80.0050.00914.89
7.3.70.0080.00714.98
7.3.60.0040.01115.01
7.3.50.0060.00914.76
7.3.40.0080.00814.90
7.3.30.0040.01014.92
7.3.20.0090.00615.74
7.3.10.0100.00815.68
7.3.00.0120.00715.73
7.2.330.0100.01016.74
7.2.320.0100.00716.43
7.2.310.0070.01016.41
7.2.300.0080.00816.42
7.2.290.0030.01416.54
7.2.260.0080.01115.48
7.2.250.0100.00915.47
7.2.240.0070.01015.40
7.2.230.0070.01015.42
7.2.220.0070.00815.31
7.2.210.0070.00615.31
7.2.200.0070.00815.15
7.2.190.0080.00615.23
7.2.180.0040.01015.17
7.2.170.0080.00615.27
7.2.160.0080.00615.21
7.2.150.0090.00916.02
7.2.140.0070.01015.94
7.2.130.0070.00816.02
7.2.120.0100.00816.79
7.2.110.0090.00716.13
7.2.100.0320.00915.73
7.2.90.0360.00915.76
7.2.80.0280.00715.77
7.2.70.0550.00615.78
7.2.60.0440.00715.84
7.2.50.0250.00815.84
7.2.40.0290.00715.83
7.2.30.0270.00815.76
7.2.20.0250.00915.74
7.2.10.0270.00815.80
7.2.00.0240.00715.80
7.1.330.0080.00915.56
7.1.320.0080.00915.05
7.1.310.0060.00815.07
7.1.300.0070.00714.98
7.1.290.0090.00615.13
7.1.280.0090.00614.83
7.1.270.0100.00714.75
7.1.260.0090.00814.82
7.1.250.0080.00514.89
7.1.240.0110.00815.00
7.1.230.0090.00914.94
7.1.220.0270.00814.71
7.1.210.0300.00814.59
7.1.200.0290.00614.55
7.1.190.0260.00614.56
7.1.180.0260.00814.62
7.1.170.0210.00814.59
7.1.160.0300.00714.62
7.1.150.0230.00914.70
7.1.140.0260.00914.65
7.1.130.0220.00814.67
7.1.120.0290.00714.58
7.1.110.0240.00714.69
7.1.100.0250.00814.72
7.1.90.0430.00614.64
7.1.80.0260.00914.63
7.1.70.0280.00714.66
7.1.60.0310.00919.49
7.1.50.0400.00919.49
7.1.40.0310.00819.52
7.1.30.0340.01019.52
7.1.20.0220.00919.42
7.1.10.0200.00914.50
7.1.00.0270.00714.67
7.0.330.0240.01013.95
7.0.320.0150.00614.18
7.0.310.0350.00613.93
7.0.300.0480.01113.87
7.0.290.0370.00713.78
7.0.280.0430.00613.86
7.0.270.0360.00713.89
7.0.260.0370.00713.83
7.0.250.0300.00913.88
7.0.240.0350.00713.96
7.0.230.0450.00613.86
7.0.220.0430.00813.95
7.0.210.0320.00813.88
7.0.200.0350.00913.92
7.0.190.0310.00813.93
7.0.180.0470.00713.93
7.0.170.0270.00813.93
7.0.160.0240.00613.82
7.0.150.0270.00713.90
7.0.140.0320.00514.00
7.0.130.0430.00813.97
7.0.120.0430.00713.89
7.0.110.0260.00713.93
7.0.100.0450.00814.01
7.0.90.0480.00513.95
7.0.80.0270.00914.00
7.0.70.0340.00813.94
7.0.60.0340.00513.82
7.0.50.0290.00813.93
7.0.40.0460.00813.69
7.0.30.0270.00813.71
7.0.20.0370.00713.75
7.0.10.0280.00813.75
7.0.00.0330.01013.71
5.6.400.0120.00914.73
5.6.390.0130.00514.78
5.6.380.0090.00914.48
5.6.370.0150.00915.59
5.6.360.0160.01616.05
5.6.350.0210.00915.66
5.6.340.0110.01416.12
5.6.330.0160.00616.04
5.6.320.0080.01616.00
5.6.310.0110.01115.88
5.6.300.0070.01115.71
5.6.290.0120.00615.78
5.6.280.0030.01615.91
5.6.270.0110.00916.02
5.6.260.0070.01015.96
5.6.250.0030.01315.86
5.6.240.0080.01115.84
5.6.230.0070.01116.03
5.6.220.0040.01615.97
5.6.210.0040.01815.86
5.6.200.0100.01315.89
5.6.190.0090.00915.78
5.6.180.0080.01115.77
5.6.170.0030.01315.91
5.6.160.0060.01015.64
5.6.150.0100.00716.13
5.6.140.0070.01115.89
5.6.130.0100.00715.65
5.6.120.0110.00715.66
5.6.110.0100.00715.72
5.6.100.0060.01215.80
5.6.90.0030.01315.98
5.6.80.0060.01015.88
5.6.70.0110.00715.77
5.6.60.0090.00915.82
5.6.50.0030.01415.66
5.6.40.0100.00715.55
5.6.30.0030.01315.95
5.6.20.0080.00815.73
5.6.10.0060.00915.66
5.6.00.0090.00615.70
5.3.290.0080.00716.30

preferences:
72.18 ms | 401 KiB | 5 Q