3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface PaymentGatewayInterface { public function pay(array $bill); public function processNotification($notification); } class Payment { protected $gateway; public function __construct(PaymentGatewayInteface $gateway) { $this->gateway = $gateway; } public function pay(array $bill) { return $this->gateway->pay($bill); } public function processNotification($notification) { return $this->gateway->processNotification($notification); } } class Paypal implements PaymentGatewayInterface { public function pay(array $bill) { } public function processNotification($notification) { } } $a = new Payment(new Paypal);

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.01018.43
8.3.50.0090.00622.01
8.3.40.0150.00318.98
8.3.30.0070.00719.04
8.3.20.0070.00020.36
8.3.10.0080.00023.73
8.3.00.0000.00722.34
8.2.180.0120.00618.54
8.2.170.0090.00622.96
8.2.160.0060.00922.00
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0050.00319.38
8.2.110.0070.00321.02
8.2.100.0030.00919.23
8.2.90.0000.00819.41
8.2.80.0000.00820.54
8.2.70.0050.00317.63
8.2.60.0060.00318.03
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0000.00718.03
8.2.20.0000.00717.84
8.2.10.0060.00319.40
8.2.00.0000.00817.64
8.1.280.0110.00425.92
8.1.270.0080.00022.05
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00322.02
8.1.230.0040.00722.65
8.1.220.0040.00417.74
8.1.210.0050.00318.92
8.1.200.0000.01017.23
8.1.190.0000.00917.43
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0000.00722.04
8.1.150.0000.00718.61
8.1.140.0000.00717.27
8.1.130.0030.00517.83
8.1.120.0000.00717.48
8.1.110.0040.00417.36
8.1.100.0000.00717.45
8.1.90.0000.00717.34
8.1.80.0040.00417.44
8.1.70.0050.00317.38
8.1.60.0000.00917.56
8.1.50.0000.00817.41
8.1.40.0000.00817.46
8.1.30.0040.00417.56
8.1.20.0000.00817.50
8.1.10.0000.00717.51
8.1.00.0000.00817.39
8.0.300.0040.00420.06
8.0.290.0040.00417.18
8.0.280.0000.00718.48
8.0.270.0000.00717.30
8.0.260.0070.00016.91
8.0.250.0030.00316.91
8.0.240.0050.00217.06
8.0.230.0000.00716.92
8.0.220.0000.00716.92
8.0.210.0000.00717.02
8.0.200.0000.00617.04
8.0.190.0080.00017.13
8.0.180.0000.00716.91
8.0.170.0040.00416.94
8.0.160.0030.00516.86
8.0.150.0030.00316.98
8.0.140.0000.00716.80
8.0.130.0060.00013.43
8.0.120.0040.00416.82
8.0.110.0040.00416.94
8.0.100.0050.00216.87
8.0.90.0070.00016.78
8.0.80.0040.01117.02
8.0.70.0040.00417.02
8.0.60.0040.00416.89
8.0.50.0040.00416.89
8.0.30.0120.01117.01
8.0.20.0090.01217.40
8.0.10.0000.00817.11
8.0.00.0090.00716.90
7.4.330.0030.00315.00
7.4.320.0000.00616.57
7.4.300.0030.00516.48
7.4.290.0070.00016.56
7.4.280.0030.00316.46
7.4.270.0070.00016.57
7.4.260.0030.00316.50
7.4.250.0070.00016.57
7.4.240.0040.00416.46
7.4.230.0030.00316.47
7.4.220.0090.01816.39
7.4.210.0080.00816.49
7.4.200.0070.00016.26
7.4.190.0030.00316.57
7.4.160.0110.01116.53
7.4.150.0140.00417.40
7.4.140.0080.01117.86
7.4.130.0090.00816.55
7.4.120.0140.00616.59
7.4.110.0110.00616.45
7.4.100.0170.00016.59
7.4.90.0100.01016.41
7.4.80.0090.01416.38
7.4.70.0100.00716.60
7.4.60.0180.00016.41
7.4.50.0030.00316.41
7.4.40.0090.00422.77
7.4.30.0030.01316.45
7.4.00.0070.01014.73
7.3.330.0030.00313.19
7.3.320.0030.00313.37
7.3.310.0000.00716.37
7.3.300.0030.00316.38
7.3.290.0090.00616.34
7.3.280.0140.00416.36
7.3.270.0100.00717.40
7.3.260.0090.01016.56
7.3.250.0060.01116.37
7.3.240.0040.01616.48
7.3.230.0120.00616.41
7.3.210.0140.00416.40
7.3.200.0160.00619.39
7.3.190.0140.00316.40
7.3.180.0120.00916.59
7.3.170.0100.00716.38
7.3.160.0000.01516.49
7.3.120.0060.00914.66
7.3.10.0150.01216.45
7.3.00.0140.00415.78
7.2.330.0090.00916.57
7.2.320.0110.00616.64
7.2.310.0100.00716.50
7.2.300.0060.01016.77
7.2.290.0060.00916.38
7.2.130.0080.00816.36
7.2.120.0150.00616.30
7.2.110.0090.01215.97
7.2.100.0110.01416.15
7.2.90.0150.01515.74
7.2.80.0210.00815.18
7.2.70.0200.01115.70
7.2.60.0320.00816.11
7.2.50.3010.00515.57
7.2.40.0190.00515.32
7.2.30.0150.00615.51
7.2.20.0170.00515.25
7.2.10.1110.00615.39
7.2.00.0110.01115.49
7.1.250.0100.01015.20
7.1.210.1200.00913.66
7.1.200.0190.00814.64
7.1.190.1260.01013.40
7.1.180.1750.01013.75
7.1.170.3590.00313.65
7.1.160.0140.01013.67
7.1.150.0260.01313.66
7.1.140.0180.00313.68
7.1.130.0130.00713.56
7.1.120.0080.01213.75
7.1.110.0070.01113.63
7.1.100.3990.01213.56
7.1.90.4080.00613.54
7.1.80.2870.00613.60
7.1.70.1260.00515.18
7.1.60.1110.00925.49
7.1.50.0880.01024.22
7.1.40.1510.00331.53
7.1.30.1730.01331.68
7.1.20.0970.00731.42
7.1.10.0950.00313.54
7.1.00.0660.04017.94
7.0.310.0320.00712.91
7.0.300.0140.00712.96
7.0.290.0210.01213.33
7.0.280.0920.00613.07
7.0.270.3660.00713.27
7.0.260.0130.00913.47
7.0.250.4240.00613.41
7.0.240.4680.00713.36
7.0.230.4040.00713.21
7.0.220.3510.00713.46
7.0.210.2490.00913.23
7.0.200.1050.01015.04
7.0.190.1550.01713.41
7.0.180.1280.00313.48
7.0.170.1650.01313.52
7.0.160.1040.01013.52
7.0.150.1340.01413.54
7.0.140.0520.03717.74
7.0.130.0670.00313.24
7.0.120.1220.00313.22
7.0.110.0880.01013.58
7.0.100.0920.00313.39
7.0.90.1070.00313.40
7.0.80.0600.01713.31
7.0.70.0560.03917.58
7.0.60.0490.04517.46
7.0.50.0340.04517.66
7.0.40.0500.03616.78
7.0.30.0360.04016.68
7.0.20.0410.04016.68
7.0.10.0340.04516.64
7.0.00.0400.03016.69
5.6.300.0000.01713.60
5.6.290.0110.01114.35
5.6.280.0100.04017.40
5.6.270.0100.01014.31
5.6.260.0160.00314.24
5.6.250.0110.00814.06
5.6.240.0100.01013.96
5.6.230.0080.01214.25
5.6.220.0100.04417.30
5.6.210.0100.02917.15
5.6.200.0090.03217.59
5.6.190.0130.03717.58
5.6.180.0090.03717.67
5.6.170.0080.03917.38
5.6.160.0120.04217.54
5.6.150.0110.03817.51
5.6.140.0090.04717.52
5.6.130.0080.04417.54
5.6.120.0020.04717.56
5.6.110.0050.04817.42
5.6.100.0120.04517.61
5.6.90.0070.04617.55
5.6.80.0070.03217.22
5.6.70.0120.03717.11
5.6.60.0050.03017.15
5.6.50.0090.03117.20
5.6.40.0090.04017.13
5.6.30.0070.04417.13
5.6.20.0050.04217.20
5.6.10.0050.02417.15
5.6.00.0090.04217.13
5.5.380.0120.00410.99
5.5.370.0100.00310.81
5.5.360.0090.04015.55
5.5.350.0070.04315.61
5.5.340.0060.04515.91
5.5.330.0080.04315.95
5.5.320.0090.04515.83
5.5.310.0080.03715.85
5.5.300.0060.04015.82
5.5.290.0100.04215.86
5.5.280.0060.04015.93
5.5.270.0100.04215.71
5.5.260.0120.03615.83
5.5.250.0150.03015.80
5.5.240.0100.03115.60
5.5.230.0050.04215.42
5.5.220.0070.04315.64
5.5.210.0100.04115.49
5.5.200.0080.04115.47
5.5.190.0120.03815.60
5.5.180.0070.03815.58
5.5.170.0200.00313.89
5.5.160.0060.02315.40
5.5.150.0050.02215.56
5.5.140.0050.02515.43
5.5.130.0060.02215.53
5.5.120.0060.02315.60
5.5.110.0060.02215.56
5.5.100.0050.02315.45
5.5.90.0070.01615.50
5.5.80.0060.02315.55
5.5.70.0030.02015.40
5.5.60.0040.02315.53
5.5.50.0070.02015.40
5.5.40.0070.01915.43
5.5.30.0030.02715.36
5.5.20.0020.02315.32
5.5.10.0020.02415.40
5.5.00.0080.01815.44
5.4.450.0060.04615.09
5.4.440.0060.04014.98
5.4.430.0090.03815.04
5.4.420.0100.03615.15
5.4.410.0070.03914.90
5.4.400.0090.04314.97
5.4.390.0070.03614.94
5.4.380.0090.02814.97
5.4.370.0070.03914.75
5.4.360.0100.03714.80
5.4.350.0090.03914.84
5.4.340.0040.04014.79
5.4.330.0000.01410.88
5.4.320.0100.02214.82
5.4.310.0040.02314.95
5.4.300.0070.02114.90
5.4.290.0070.02014.95
5.4.280.0030.02614.87
5.4.270.0070.02114.84
5.4.260.0040.02215.01
5.4.250.0000.02815.08
5.4.240.0040.01914.91
5.4.230.0030.02315.09
5.4.220.0020.02215.05
5.4.210.0040.02114.85
5.4.200.0070.01814.93
5.4.190.0050.02214.60
5.4.180.0050.02014.79
5.4.170.0020.02514.80
5.4.160.0120.02014.84
5.4.150.0070.01714.86
5.4.140.0040.02313.53
5.4.130.0060.03413.51
5.4.120.0060.02013.64
5.4.110.0070.02113.60
5.4.100.0060.02213.64
5.4.90.0080.02013.57
5.4.80.0080.03513.76
5.4.70.0080.02313.74
5.4.60.0050.02713.70
5.4.50.0040.02213.77
5.4.40.0050.02113.62
5.4.30.0050.03213.66
5.4.20.0060.02913.52
5.4.10.0020.02613.59
5.4.00.0070.02713.38
5.3.290.0050.02212.71
5.3.280.0040.02212.54
5.3.270.0080.04112.52
5.3.260.0110.02212.58
5.3.250.0050.01712.57
5.3.240.0020.01912.61
5.3.230.0070.02312.55
5.3.220.0030.02312.53
5.3.210.0060.01812.53
5.3.200.0040.01812.57
5.3.190.0040.02912.53
5.3.180.0080.02212.51
5.3.170.0060.03412.53
5.3.160.0080.02512.65
5.3.150.0070.01812.56
5.3.140.0050.02012.50
5.3.130.0050.02212.54
5.3.120.0040.03412.53
5.3.110.0040.02512.50
5.3.100.0090.01812.26
5.3.90.0010.02612.34
5.3.80.0040.02112.31
5.3.70.0090.02012.31
5.3.60.0050.02312.32
5.3.50.0050.02012.24
5.3.40.0050.02612.25
5.3.30.0060.02012.24
5.3.20.0070.01812.08
5.3.10.0060.03112.09
5.3.00.0070.02312.07
5.2.170.0060.01510.74
5.2.160.0000.02110.82
5.2.150.0030.02010.77
5.2.140.0060.02010.87
5.2.130.0080.01810.74
5.2.120.0040.02010.84
5.2.110.0100.01310.83
5.2.100.0030.01910.82
5.2.90.0050.01610.81
5.2.80.0040.03510.85
5.2.70.0080.02310.80
5.2.60.0020.02110.71
5.2.50.0020.01810.70
5.2.40.0060.02210.78
5.2.30.0020.01610.77
5.2.20.0040.01610.69
5.2.10.0040.01510.70
5.2.00.0030.01810.65
5.1.60.0030.01610.63
5.1.50.0060.02010.63
5.1.40.0060.02510.63
5.1.30.0050.01810.63
5.1.20.0030.01510.63
5.1.10.0000.01810.63
5.1.00.0090.01310.63
5.0.50.0050.01010.63
5.0.40.0030.01110.63
5.0.30.0020.02210.63
5.0.20.0040.01010.63
5.0.10.0020.01010.63
5.0.00.0030.01310.63
4.4.90.0040.00910.63
4.4.80.0020.00910.63
4.4.70.0030.01010.63
4.4.60.0020.01210.63
4.4.50.0010.00910.63
4.4.40.0000.02010.63
4.4.30.0020.01210.63
4.4.20.0050.00710.63
4.4.10.0030.00810.63
4.4.00.0010.01410.63
4.3.110.0020.01210.63
4.3.100.0010.00910.63
4.3.90.0020.00810.63
4.3.80.0020.01210.63
4.3.70.0030.00810.63
4.3.60.0000.00910.63
4.3.50.0020.00910.63
4.3.40.0030.01110.63
4.3.30.0000.00910.63
4.3.20.0000.00910.63
4.3.10.0030.00710.63
4.3.00.0020.00910.63

preferences:
48.14 ms | 401 KiB | 5 Q