3v4l.org

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

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.40.0090.00618.85
8.3.30.0110.00418.67
8.3.20.0080.00018.95
8.3.10.0040.00418.77
8.3.00.0030.00619.13
8.2.170.0070.00722.96
8.2.160.0080.01118.99
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0070.00021.12
8.2.110.0000.01022.15
8.2.100.0040.00817.91
8.2.90.0000.00817.63
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0030.00517.55
8.2.50.0050.00318.07
8.2.40.0040.00419.32
8.2.30.0060.00317.59
8.2.20.0030.00717.57
8.2.10.0000.00817.61
8.2.00.0000.00717.68
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00020.58
8.1.230.0070.00317.82
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0000.00718.82
8.1.160.0000.00719.00
8.1.150.0070.00018.61
8.1.140.0070.00017.37
8.1.130.0030.00317.30
8.1.120.0000.00717.27
8.1.110.0000.00717.46
8.1.100.0000.00717.43
8.1.90.0040.00417.43
8.1.80.0000.00817.44
8.1.70.0000.00717.32
8.1.60.0020.00517.58
8.1.50.0040.00417.44
8.1.40.0000.00817.48
8.1.30.0000.00917.58
8.1.20.0040.00417.70
8.1.10.0040.00417.57
8.1.00.0000.00817.53
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00718.63
8.0.270.0030.00317.20
8.0.260.0000.00716.80
8.0.250.0040.00416.93
8.0.240.0000.00716.94
8.0.230.0040.00416.85
8.0.220.0030.00316.79
8.0.210.0000.00716.81
8.0.200.0030.00316.94
8.0.190.0000.00716.94
8.0.180.0030.00616.92
8.0.170.0050.00316.81
8.0.160.0050.00216.93
8.0.150.0030.00616.75
8.0.140.0000.00816.71
8.0.130.0030.00313.31
8.0.120.0060.00316.75
8.0.110.0000.00816.92
8.0.100.0070.00016.90
8.0.90.0040.00417.00
8.0.80.0070.01416.87
8.0.70.0060.00316.71
8.0.60.0080.00016.71
8.0.50.0000.00916.74
8.0.30.0080.00817.14
8.0.20.0060.01317.21
8.0.10.0000.00716.98
8.0.00.0060.01217.02
7.4.330.0020.00212.94
7.4.320.0000.00616.55
7.4.300.0000.00716.51
7.4.290.0000.00716.60
7.4.280.0000.00816.45
7.4.270.0040.00416.51
7.4.260.0060.00013.20
7.4.250.0040.00416.48
7.4.240.0030.00316.59
7.4.230.0000.00716.39
7.4.220.0070.01116.54
7.4.210.0100.00316.61
7.4.200.0030.00316.34
7.4.190.0040.00416.50
7.4.160.0060.00916.30
7.4.150.0120.00616.31
7.4.140.0130.00317.86
7.4.130.0130.01016.39
7.4.120.0110.00916.44
7.4.110.0140.00316.49
7.4.100.0090.00916.36
7.4.90.0080.01116.52
7.4.80.0130.00619.39
7.4.70.0070.01016.65
7.4.60.0130.00316.49
7.4.50.0030.00616.43
7.4.40.0060.00916.29
7.4.30.0190.00316.47
7.4.00.0030.01214.88
7.3.330.0030.00313.43
7.3.320.0030.00313.15
7.3.310.0030.00316.37
7.3.300.0030.00316.47
7.3.290.0050.01116.38
7.3.280.0110.00316.34
7.3.270.0120.00616.43
7.3.260.0100.01016.26
7.3.240.0100.01016.36
7.3.230.0060.01216.31
7.3.210.0070.01016.52
7.3.200.0100.00616.59
7.3.190.0090.00916.59
7.3.180.0040.01116.57
7.3.170.0030.01316.21
7.3.160.0150.00016.46
7.3.120.0000.01414.74
7.3.10.0080.00616.51
7.3.00.0060.00616.38
7.2.330.0090.00916.64
7.2.320.0030.01316.71
7.2.310.0130.00616.63
7.2.300.0100.00716.63
7.2.290.0060.01316.53
7.2.130.0030.00916.72
7.2.120.0030.00816.64
7.2.110.0070.00816.69
7.2.100.0030.00816.68
7.2.90.0060.00616.82
7.2.80.0090.00616.82
7.2.70.0050.00716.86
7.2.60.0390.00616.21
7.2.50.0040.00716.88
7.2.40.0030.01216.66
7.2.30.0040.01116.67
7.2.20.0020.01116.87
7.2.10.0060.00616.96
7.2.00.0040.00817.74
7.1.250.0050.00615.47
7.1.200.0060.00315.64
7.1.100.0040.00817.60
7.1.70.0060.00917.18
7.1.60.0160.01019.25
7.1.50.0090.00616.54
7.1.00.0030.03322.42
7.0.200.0030.00616.76
7.0.140.0000.07721.90
7.0.120.0030.05322.18
7.0.60.0100.08019.98
7.0.50.0070.05017.88
7.0.40.3370.03320.18
7.0.30.3300.04320.20
7.0.20.4300.04320.05
7.0.10.3370.03720.33
7.0.00.3570.04020.06
5.6.280.0000.07721.16
5.6.210.0070.05320.73
5.6.200.0030.08018.15
5.6.190.3270.04720.55
5.6.180.2700.04020.46
5.6.170.3400.03720.56
5.6.160.3630.03720.61
5.6.150.3400.04320.38
5.6.140.3230.04020.27
5.6.130.4100.04320.33
5.6.120.1830.04320.36
5.6.110.0030.09020.34
5.6.100.3370.04020.26
5.6.90.3230.04320.26
5.6.80.3600.03319.96
5.6.70.3470.03019.68
5.6.60.0170.07019.64
5.6.50.4330.04019.68
5.6.40.3770.04319.71
5.6.30.3730.03019.75
5.6.20.3770.04019.63
5.6.10.3300.04319.65
5.6.00.3670.04019.62
5.5.350.0200.07720.32
5.5.340.0030.07017.98
5.5.330.1530.06720.36
5.5.320.2970.04020.51
5.5.310.3400.03320.35
5.5.300.2970.03720.11
5.5.290.4170.04320.07
5.5.280.0030.07020.11
5.5.270.0100.07720.10
5.5.260.3930.04020.09
5.5.250.3400.04319.91
5.5.240.3600.04319.48
5.5.230.4130.04319.44
5.5.220.0130.05319.56
5.5.210.4300.03719.55
5.5.200.4070.04019.42
5.5.190.3600.03719.45
5.5.180.3300.03319.47
5.5.160.3400.03719.52
5.5.150.4530.04319.46
5.5.140.4200.04019.55
5.5.130.3800.04319.49
5.5.120.3900.03719.52
5.5.110.3670.03319.45
5.5.100.4200.04019.43
5.5.90.3970.04719.40
5.5.80.3370.04319.32
5.5.70.3370.04019.35
5.5.60.3430.03019.32
5.5.50.3630.03319.35
5.5.40.3230.04019.41
5.5.30.4470.04019.38
5.5.20.3300.04019.36
5.5.10.3700.04319.36
5.5.00.3630.04019.37
5.4.450.5070.04019.35
5.4.440.0030.03719.44
5.4.430.1330.06719.21
5.4.420.3400.04019.28
5.4.410.3530.04319.28
5.4.400.3830.04319.32
5.4.390.3930.03719.14
5.4.380.0030.07319.02
5.4.370.2170.04719.04
5.4.360.4500.03318.98
5.4.350.3730.03019.03
5.4.340.3570.03018.89
5.4.320.3500.02319.14
5.4.310.3470.03319.02
5.4.300.3870.03319.10
5.4.290.3830.04019.10
5.4.280.4270.04019.10
5.4.270.3900.04019.27
5.4.260.4270.03719.06
5.4.250.4200.04319.02
5.4.240.3330.03718.95
5.4.230.3430.04019.14
5.4.220.3630.03719.02
5.4.210.3630.03719.03
5.4.200.3670.04319.09
5.4.190.3570.03719.09
5.4.180.3300.03319.01
5.4.170.3470.03719.04
5.4.160.3530.04019.01
5.4.150.3730.04019.01
5.4.140.3400.02316.36
5.4.130.3230.03316.59
5.4.120.3870.03316.61
5.4.110.3370.03316.46
5.4.100.3530.03316.29
5.4.90.3530.03716.40
5.4.80.3270.03716.52
5.4.70.3830.03316.42
5.4.60.3870.03016.27
5.4.50.3530.03716.56
5.4.40.4100.03016.47
5.4.30.3370.02716.27
5.4.20.3170.04016.45
5.4.10.3200.03716.41
5.4.00.3570.04315.75
5.3.290.3300.03714.66
5.3.280.3000.03714.55
5.3.270.3470.03314.82
5.3.260.3470.03714.66
5.3.250.3430.03314.58
5.3.240.3530.03714.68
5.3.230.3730.03714.59
5.3.220.3900.04314.57
5.3.210.3600.03714.61
5.3.200.3500.03714.64
5.3.190.3330.04014.55
5.3.180.3470.03714.60
5.3.170.3400.03714.65
5.3.160.3930.03314.60
5.3.150.3470.03714.61
5.3.140.4100.03714.59
5.3.130.3330.04314.62
5.3.120.3230.04014.65
5.3.110.3300.03714.54
5.3.100.3270.04014.10
5.3.90.3270.03314.04
5.3.80.3270.03714.07
5.3.70.3070.03314.07
5.3.60.3300.03314.02
5.3.50.3230.04014.00
5.3.40.3400.03713.98
5.3.30.3300.04013.90
5.3.20.3400.03313.55
5.3.10.3530.03313.56
5.3.00.3570.03713.67
5.2.170.2830.03011.21
5.2.160.2770.02011.18
5.2.150.2700.03011.20
5.2.140.2900.03011.21
5.2.130.3300.03011.32
5.2.120.2600.03011.16
5.2.110.2730.02711.07
5.2.100.3570.02311.09
5.2.90.3100.02711.18
5.2.80.4370.03011.14
5.2.70.3500.03011.20
5.2.60.3600.03011.10
5.2.50.3300.02710.88
5.2.40.2900.03011.04
5.2.30.2600.02711.00
5.2.20.3100.02710.97
5.2.10.2770.02310.92
5.2.00.2800.03310.73
5.1.60.2900.03010.03
5.1.50.3000.02310.00
5.1.40.3030.02710.05
5.1.30.2900.02710.19
5.1.20.2730.02710.25
5.1.10.3030.02010.01
5.1.00.2930.02710.05
5.0.50.1330.0208.59
5.0.40.1500.0208.25
5.0.30.1270.0338.27
5.0.20.1330.0178.18
5.0.10.1630.0238.23
5.0.00.1700.0308.26
4.4.90.1570.0205.93
4.4.80.1430.0135.86
4.4.70.1670.0135.86
4.4.60.1300.0175.86
4.4.50.1700.0135.87
4.4.40.1670.0275.86
4.4.30.1300.0175.88
4.4.20.1630.0175.92
4.4.10.1330.0135.86
4.4.00.1630.0235.86
4.3.110.1330.0135.86
4.3.100.1370.0175.86
4.3.90.1330.0135.86
4.3.80.1730.0235.86
4.3.70.1600.0205.86
4.3.60.1470.0175.86
4.3.50.1370.0175.86
4.3.40.1430.0235.86
4.3.30.0670.0135.86
4.3.20.0430.0305.86
4.3.10.0000.0405.86
4.3.00.0000.0375.86

preferences:
49.88 ms | 400 KiB | 5 Q