3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassName { public function foo(self $bar) { } } $instance = new ClassName(); $instance->foo($instance);

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.4.10.0100.00017.61
8.3.140.0150.00317.00
8.3.130.0110.00016.57
8.3.120.0040.00418.79
8.3.110.0160.00020.94
8.3.100.0080.00024.06
8.3.90.0040.00426.77
8.3.80.0000.01019.36
8.3.70.0140.00418.18
8.3.60.0140.00716.38
8.3.50.0130.00518.11
8.3.40.0090.00618.54
8.3.30.0110.00418.69
8.3.20.0040.00421.95
8.3.10.0070.00021.76
8.3.00.0000.00819.56
8.2.250.0090.00018.73
8.2.240.0060.00317.34
8.2.230.0120.00322.58
8.2.220.0100.00037.54
8.2.210.0100.00326.77
8.2.200.0060.00318.88
8.2.190.0120.00616.63
8.2.180.0050.01018.41
8.2.170.0100.01018.79
8.2.160.0110.00322.96
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0000.00726.16
8.2.120.0000.00719.70
8.2.110.0070.00321.03
8.2.100.0080.00417.47
8.2.90.0080.00017.91
8.2.80.0110.00017.97
8.2.70.0040.00417.79
8.2.60.0040.00417.68
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0070.00018.12
8.2.20.0030.00617.93
8.2.10.0000.00717.91
8.2.00.0080.00017.99
8.1.300.0050.00517.93
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0080.00020.29
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00623.80
8.1.230.0090.00322.75
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0040.00417.09
8.1.180.0050.00318.10
8.1.170.0080.00018.52
8.1.160.0040.00418.73
8.1.150.0040.00418.52
8.1.140.0040.00417.63
8.1.130.0070.00017.29
8.1.120.0000.00717.32
8.1.110.0000.00817.38
8.1.100.0080.00017.38
8.1.90.0000.00717.29
8.1.80.0030.00717.29
8.1.70.0000.00717.36
8.1.60.0080.00017.62
8.1.50.0090.00017.52
8.1.40.0050.00317.46
8.1.30.0030.00517.68
8.1.20.0040.00417.61
8.1.10.0050.00517.46
8.1.00.0090.00317.43
8.0.300.0040.00419.91
8.0.290.0080.00016.75
8.0.280.0070.00018.37
8.0.270.0040.00417.25
8.0.260.0030.00616.68
8.0.250.0000.00716.91
8.0.240.0080.00016.92
8.0.230.0070.00316.86
8.0.220.0000.00816.96
8.0.210.0040.00416.77
8.0.200.0030.00316.95
8.0.190.0000.00716.80
8.0.180.0070.00016.96
8.0.170.0040.00416.88
8.0.160.0070.00016.80
8.0.150.0000.00716.70
8.0.140.0030.00316.80
8.0.130.0000.00613.32
8.0.120.0080.00016.85
8.0.110.0050.00316.79
8.0.100.0080.00016.74
8.0.90.0000.00716.91
8.0.80.0100.00316.82
8.0.70.0020.00516.95
8.0.60.0030.00416.96
8.0.50.0070.00016.84
8.0.30.0080.00817.05
8.0.20.0110.00917.40
8.0.10.0000.00716.79
8.0.00.0070.01116.69
7.4.330.0000.00515.55
7.4.320.0040.00416.30
7.4.300.0000.00716.41
7.4.290.0000.00716.51
7.4.280.0040.00416.52
7.4.270.0070.00016.55
7.4.260.0000.00816.60
7.4.250.0030.00316.47
7.4.240.0030.00316.48
7.4.230.0040.00416.67
7.4.220.0000.00816.34
7.4.210.0080.00916.62
7.4.200.0000.00716.57
7.4.160.0120.00716.53
7.4.140.0110.00817.86
7.4.130.0080.01016.46
7.4.120.0100.00816.44
7.4.110.0090.01216.50
7.4.100.0000.01716.20
7.4.90.0120.00616.37
7.4.80.0120.01319.39
7.4.70.0070.01016.39
7.4.60.0040.01216.35
7.4.50.0070.00516.35
7.4.40.0070.01516.25
7.4.10.0070.01115.09
7.4.00.0090.00715.06
7.3.330.0050.00013.16
7.3.320.0060.00013.23
7.3.310.0020.00516.30
7.3.300.0060.00316.29
7.3.290.0000.00716.25
7.3.280.0070.00716.27
7.3.260.0080.01116.26
7.3.240.0100.00816.30
7.3.230.0070.01016.25
7.3.210.0150.00616.17
7.3.200.0100.00716.17
7.3.190.0060.01116.43
7.3.180.0060.01016.33
7.3.170.0130.00616.31
7.3.160.0070.01016.39
7.3.130.0040.01414.56
7.3.120.0130.00514.53
7.3.110.0090.00714.64
7.3.100.0090.00914.69
7.3.90.0040.01414.88
7.3.80.0040.01114.79
7.3.70.0100.00414.65
7.3.60.0060.00814.68
7.3.50.0090.00914.75
7.3.40.0070.01014.67
7.3.30.0080.01014.80
7.3.20.0080.00815.93
7.3.10.0050.00816.06
7.3.00.0110.00516.01
7.2.330.0090.01516.50
7.2.320.0070.01116.62
7.2.310.0120.01216.44
7.2.300.0100.00616.62
7.2.290.0170.00016.65
7.2.260.0030.01014.85
7.2.250.0030.01015.10
7.2.240.0100.00715.01
7.2.230.0100.00614.90
7.2.220.0110.00814.85
7.2.210.0070.00814.93
7.2.200.0070.00914.81
7.2.190.0110.00414.69
7.2.180.0100.00714.74
7.2.170.0080.00814.87
7.2.160.0100.00614.77
7.2.150.0090.00716.07
7.2.140.0090.00616.14
7.2.130.0080.00716.21
7.2.120.0070.00916.27
7.2.110.0080.00816.19
7.2.100.0100.00616.33
7.2.90.0080.00916.27
7.2.80.0090.00616.22
7.2.70.0070.00816.29
7.2.60.0090.00716.35
7.2.50.0090.00916.40
7.2.40.0190.00916.61
7.2.30.0150.00816.48
7.2.20.0140.00816.29
7.2.10.0130.01016.48
7.2.00.0150.00716.46
7.1.330.0090.00714.36
7.1.320.0090.00614.44
7.1.310.0150.00914.46
7.1.300.0090.00714.31
7.1.290.0070.00914.33
7.1.280.0090.00914.75
7.1.270.0100.00814.79
7.1.260.0040.01314.73
7.1.250.0080.00615.10
7.1.240.0100.00715.03
7.1.230.0080.01015.10
7.1.220.0110.00915.11
7.1.210.0150.00415.06
7.1.200.0080.00815.14
7.1.190.0130.00815.00
7.1.180.0160.00615.09
7.1.170.0080.00815.13
7.1.160.0170.00815.27
7.1.150.0140.00915.30
7.1.140.0170.00615.22
7.1.130.0150.01015.22
7.1.120.0130.01215.30
7.1.110.0150.00915.22
7.1.100.0170.00915.18
7.1.90.0190.00915.21
7.1.80.0240.00615.25
7.1.70.0140.01015.13
7.1.60.0210.00917.34
7.1.50.0160.00917.30
7.1.40.0190.00717.26
7.1.30.0220.00817.20
7.1.20.0180.00817.28
7.1.10.0140.00914.99
7.1.00.0160.00715.13
7.0.330.0110.00614.65
7.0.320.0100.00814.18
7.0.310.0120.00714.21
7.0.300.0150.01214.29
7.0.290.0220.01015.08
7.0.280.0170.00414.39
7.0.270.0330.00615.04
7.0.260.0230.00915.05
7.0.250.0330.00914.86
7.0.240.0270.00714.93
7.0.230.0300.00814.98
7.0.220.0380.00914.88
7.0.210.0320.01114.46
7.0.200.0300.00714.50
7.0.190.0560.01014.51
7.0.180.0450.00914.37
7.0.170.0340.00914.45
7.0.160.0410.01014.49
7.0.150.0240.01014.35
7.0.140.0330.01114.25
7.0.130.0400.01214.49
7.0.120.0330.00914.48
7.0.110.0470.00514.41
7.0.100.0380.00914.43
7.0.90.0450.00614.25
7.0.80.0450.00714.40
7.0.70.0500.01114.26
7.0.60.0440.01214.25
7.0.50.0460.01014.41
7.0.40.0460.01214.44
7.0.30.0430.00814.54
7.0.20.0240.01414.41
7.0.10.0270.00914.35
7.0.00.0280.00714.46
5.6.400.0160.00514.35
5.6.390.0100.00814.06
5.6.380.0130.00814.19
5.6.370.0090.01314.21
5.6.360.0180.00714.02
5.6.350.0140.00714.15
5.6.340.0130.00714.17
5.6.330.0170.00414.25
5.6.320.0160.00714.13
5.6.310.0140.00714.36
5.6.300.0100.03016.25
5.6.290.0140.02916.49
5.6.280.0160.03016.43
5.6.270.0190.02616.59
5.6.260.0120.02816.54
5.6.250.0140.02816.36
5.6.240.0110.03516.32
5.6.230.0160.02916.42
5.6.220.0120.03116.52
5.6.210.0140.03516.48
5.6.200.0160.02816.28
5.6.190.0200.03016.25
5.6.180.0190.03016.34
5.6.170.0140.02516.37
5.6.160.0150.02616.53
5.6.150.0130.03016.37
5.6.140.0130.02616.51
5.6.130.0120.02716.41
5.6.120.0130.02316.60
5.6.110.0130.02316.25
5.6.100.0140.02316.42
5.6.90.0120.02616.57
5.6.80.0140.02516.16
5.6.70.0090.02916.22
5.6.60.0130.02316.13
5.6.50.0140.02216.18
5.6.40.0130.02416.20
5.6.30.0130.02516.18
5.6.20.0140.02316.11
5.6.10.0140.02616.05
5.6.00.0090.02815.98
5.5.380.0150.02915.25
5.5.370.0140.02815.37
5.5.360.0130.03115.17
5.5.350.0170.03115.22
5.5.340.0130.03115.48
5.5.330.0150.02915.39
5.5.320.0130.02615.49
5.5.310.0120.03415.56
5.5.300.0180.02415.44
5.5.290.0130.02515.46
5.5.280.0120.02515.54
5.5.270.0100.02515.30
5.5.260.0130.02615.22
5.5.250.0120.02815.31
5.5.240.0130.02115.21
5.5.230.0140.02215.21
5.5.220.0110.02115.04
5.5.210.0120.02615.14
5.5.200.0130.02014.99
5.5.190.0140.02815.02
5.5.180.0100.03015.11
5.5.170.0100.01213.95
5.5.160.0120.02415.11
5.5.150.0080.03214.99
5.5.140.0170.02115.06
5.5.130.0170.02215.01
5.5.120.0170.03415.09
5.5.110.0120.02815.17
5.5.100.0120.02615.08
5.5.90.0100.02615.01
5.5.80.0130.02215.12
5.5.70.0110.02515.15
5.5.60.0150.02315.09
5.5.50.0130.02315.04
5.5.40.0120.02415.21
5.5.30.0140.02214.97
5.5.20.0140.02415.12
5.5.10.0150.03015.00
5.5.00.0120.02615.27
5.4.450.0120.02313.69
5.4.440.0070.02813.63
5.4.430.0100.02313.68
5.4.420.0160.02213.71
5.4.410.0100.02413.52
5.4.400.0120.02313.57
5.4.390.0080.02513.66
5.4.380.0100.02713.47
5.4.370.0120.02113.54
5.4.360.0110.02413.41
5.4.350.0100.02113.35
5.4.340.0090.02413.60
5.4.330.0100.00310.77
5.4.320.0110.02513.63
5.4.310.0110.02613.46
5.4.300.0130.02113.62
5.4.290.0090.02413.63
5.4.280.0120.02313.61
5.4.270.0110.02813.52
5.4.260.0130.02013.37
5.4.250.0130.02013.59
5.4.240.0090.02313.50
5.4.230.0110.02413.53
5.4.220.0120.02213.56
5.4.210.0090.02213.65
5.4.200.0090.02413.48
5.4.190.0080.02513.60
5.4.180.0120.02113.39
5.4.170.0140.02413.50
5.4.160.0100.02213.43
5.4.150.0130.02213.50
5.4.140.0110.02412.77
5.4.130.0060.02612.62
5.4.120.0100.02712.82
5.4.110.0140.01912.83
5.4.100.0090.02312.71
5.4.90.0110.02312.72
5.4.80.0110.01912.69
5.4.70.0080.02212.83
5.4.60.0080.02212.69
5.4.50.0090.02212.73
5.4.40.0130.02112.82
5.4.30.0110.02012.77
5.4.20.0110.02612.68
5.4.10.0110.02412.59
5.4.00.0100.02212.58
5.3.290.0120.02611.98
5.3.280.0090.02511.95
5.3.270.0140.02411.90
5.3.260.0120.02611.74
5.3.250.0130.02511.98
5.3.240.0100.02211.75
5.3.230.0100.02111.86
5.3.220.0090.02311.78
5.3.210.0090.02411.76
5.3.200.0080.02211.67
5.3.190.0100.02411.95
5.3.180.0130.01911.85
5.3.170.0100.02011.83
5.3.160.0140.02511.83
5.3.150.0100.02611.93
5.3.140.0130.02711.89
5.3.130.0120.02411.85
5.3.120.0080.02811.99
5.3.110.0110.02311.94
5.3.100.0120.02211.71
5.3.90.0110.01911.71
5.3.80.0090.02311.62
5.3.70.0120.02611.64
5.3.60.0130.02511.74
5.3.50.0140.02411.70
5.3.40.0100.02711.63
5.3.30.0090.02511.63
5.3.20.0110.02011.61
5.3.10.0060.02011.27
5.3.00.0090.02311.41
5.2.170.0130.02110.10
5.2.160.0120.02110.11
5.2.150.0120.01810.05
5.2.140.0100.01810.18
5.2.130.0120.0199.99
5.2.120.0100.01710.05
5.2.110.0110.01410.09
5.2.100.0140.0189.98
5.2.90.0130.0189.78
5.2.80.0090.0209.97
5.2.70.0080.0219.92
5.2.60.0060.0249.79
5.2.50.0100.0169.88
5.2.40.0080.0169.98
5.2.30.0080.01710.00
5.2.20.0100.0189.93
5.2.10.0070.0199.61
5.2.00.0090.0199.79
5.1.60.0090.0169.24
5.1.50.0080.0149.18
5.1.40.0100.0159.25
5.1.30.0090.0189.43
5.1.20.0100.0199.36
5.1.10.0080.0189.40
5.1.00.0070.0179.33
5.0.50.0070.0148.71
5.0.40.0070.0118.66
5.0.30.0090.0178.65
5.0.20.0060.0118.65
5.0.10.0060.0138.65
5.0.00.0030.0218.65
4.4.90.0090.0118.65
4.4.80.0050.0108.65
4.4.70.0060.0108.65
4.4.60.0060.0118.65
4.4.50.0080.0098.65
4.4.40.0060.0138.65
4.4.30.0020.0138.65
4.4.20.0050.0118.65
4.4.10.0060.0108.65
4.4.00.0050.0148.65
4.3.110.0020.0128.65
4.3.100.0060.0088.65
4.3.90.0060.0088.65
4.3.80.0070.0138.65
4.3.70.0080.0078.65
4.3.60.0070.0118.65
4.3.50.0040.0128.65
4.3.40.0070.0148.65
4.3.30.0050.0108.65
4.3.20.0060.0068.65
4.3.10.0050.0088.65
4.3.00.0050.0098.65

preferences:
35.65 ms | 403 KiB | 5 Q