3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * (Hopefully) will be the base of all (future) db-based model */ interface iCrud { /** * should return the correct model mapper */ public static function getModelMapper(); } abstract class Model_Crud implements iCrud { public function update($data, $where = false) { $m = static::getModelMapper(); } } class FooModel extends Model_Crud { public static function getModelMapper() { return 'foomapper'; } } class BarController { public function action() { FooModel::update(1, array(1)); } } $bar = new BarController(); $bar->action();

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.0140.00416.63
8.3.50.0080.01217.51
8.3.40.0120.00318.96
8.3.30.0120.00618.54
8.3.20.0040.00418.81
8.3.10.0030.00518.90
8.3.00.0050.00319.25
8.2.180.0120.00616.63
8.2.170.0070.01022.96
8.2.160.0070.00718.93
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.76
8.2.110.0040.00820.47
8.2.100.0090.00317.72
8.2.90.0040.00417.75
8.2.80.0000.00918.97
8.2.70.0110.00017.50
8.2.60.0050.00318.00
8.2.50.0040.00418.04
8.2.40.0080.00019.31
8.2.30.0030.00517.75
8.2.20.0060.00317.67
8.2.10.0000.00817.73
8.2.00.0060.00317.61
8.1.280.0070.01025.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.90
8.1.230.0060.00620.88
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00017.48
8.1.190.0030.00517.35
8.1.180.0030.00718.10
8.1.170.0040.00417.62
8.1.160.0000.00818.86
8.1.150.0000.00718.56
8.1.140.0000.00817.35
8.1.130.0000.00719.28
8.1.120.0030.00317.49
8.1.110.0000.00717.33
8.1.100.0030.00317.36
8.1.90.0000.00717.37
8.1.80.0070.00017.35
8.1.70.0000.00717.45
8.1.60.0040.00417.58
8.1.50.0000.00817.57
8.1.40.0080.00017.40
8.1.30.0030.00617.66
8.1.20.0050.00217.56
8.1.10.0000.00717.64
8.1.00.0030.00517.35
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0000.00718.63
8.0.270.0000.00717.27
8.0.260.0070.00016.81
8.0.250.0000.00817.03
8.0.240.0040.00417.03
8.0.230.0060.00316.91
8.0.220.0000.00716.84
8.0.210.0060.00317.00
8.0.200.0000.00616.90
8.0.190.0060.00317.05
8.0.180.0000.00717.00
8.0.170.0090.00016.94
8.0.160.0100.00316.93
8.0.150.0000.00816.86
8.0.140.0060.00316.91
8.0.130.0000.00513.40
8.0.120.0030.00616.89
8.0.110.0000.00716.77
8.0.100.0050.00316.85
8.0.90.0080.00017.02
8.0.80.0100.00616.84
8.0.70.0040.00416.82
8.0.60.0080.00016.86
8.0.50.0060.00316.81
8.0.30.0040.01517.03
8.0.20.0060.01217.11
8.0.10.0020.00517.19
8.0.00.0120.00816.86
7.4.330.0030.00313.00
7.4.320.0060.00016.61
7.4.300.0030.00316.61
7.4.290.0000.00716.51
7.4.280.0000.00716.62
7.4.270.0030.00316.59
7.4.260.0020.00213.21
7.4.250.0060.00316.47
7.4.240.0080.00016.52
7.4.230.0070.00016.67
7.4.220.0150.00616.60
7.4.210.0000.02016.64
7.4.200.0040.00416.48
7.4.190.0000.00816.66
7.4.160.0150.00016.38
7.4.150.0140.00316.57
7.4.140.0120.01617.86
7.4.130.0140.01116.57
7.4.120.0130.00916.46
7.4.110.0100.00716.51
7.4.100.0110.00616.59
7.4.90.0070.01016.39
7.4.80.0080.01119.39
7.4.70.0100.01316.45
7.4.60.0090.00816.46
7.4.50.0000.00516.41
7.4.40.0110.00716.45
7.4.30.0090.00916.50
7.4.00.0080.00814.97
7.3.330.0000.00513.16
7.3.320.0030.00313.19
7.3.310.0000.00716.25
7.3.300.0060.00016.41
7.3.290.0090.00716.36
7.3.280.0060.01516.31
7.3.270.0040.01316.26
7.3.260.0070.01016.35
7.3.240.0090.00916.63
7.3.230.0050.01316.43
7.3.210.0080.00916.34
7.3.200.0080.00816.47
7.3.190.0120.00416.54
7.3.180.0080.00816.36
7.3.170.0160.00016.30
7.3.160.0060.01016.23
7.3.120.0060.01014.71
7.3.110.0060.00914.93
7.3.100.0110.00314.78
7.3.90.0000.01614.72
7.3.80.0090.00614.67
7.3.70.0070.00714.78
7.3.60.0030.01014.59
7.3.50.0090.00614.60
7.3.40.0000.00814.71
7.3.30.0100.00314.84
7.3.20.0070.00716.50
7.3.10.0050.00716.55
7.3.00.0080.00616.61
7.2.330.0160.00916.41
7.2.320.0090.01216.79
7.2.310.0110.01116.41
7.2.300.0060.01116.66
7.2.290.0140.00616.65
7.2.250.0120.00615.07
7.2.240.0120.00614.68
7.2.230.0080.00814.73
7.2.220.0060.00315.02
7.2.210.0060.00915.21
7.2.200.0090.00014.93
7.2.190.0040.00814.96
7.2.180.0000.01714.89
7.2.170.0090.00314.91
7.2.130.0030.01216.67
7.2.120.0030.01416.72
7.2.110.0040.00816.62
7.2.100.0090.00616.61
7.2.90.0070.00716.66
7.2.80.0060.00716.65
7.2.70.0110.00716.64
7.2.60.0010.01216.80
7.2.50.0070.00716.62
7.2.40.0000.01116.89
7.2.30.0030.01316.88
7.2.20.0140.00016.88
7.2.10.0030.01016.80
7.2.00.0080.00818.01
7.1.330.0070.01015.66
7.1.320.0070.00715.74
7.1.310.0100.00315.63
7.1.300.0030.00715.61
7.1.290.0030.00615.70
7.1.280.0120.00015.53
7.1.270.0060.00915.50
7.1.260.0140.00015.50
7.1.250.0100.00315.57
7.1.200.0060.00615.68
7.1.100.0060.00617.86
7.1.70.0100.00717.24
7.1.60.0100.01019.21
7.1.50.0240.00734.53
7.1.00.0030.04022.54
7.0.200.0040.00416.75
7.0.140.0070.06721.99
7.0.120.0000.05322.17
7.0.60.0070.08320.02
7.0.50.0000.04717.85
7.0.40.0300.04720.09
7.0.30.0270.06720.16
7.0.20.0330.08020.19
7.0.10.0300.07720.16
7.0.00.0270.07720.23
5.6.280.0030.07320.89
5.6.210.0030.07020.63
5.6.200.0000.08318.18
5.6.190.0330.06720.46
5.6.180.0330.06020.65
5.6.170.0270.07720.33
5.6.160.0370.07320.47
5.6.150.0300.08320.20
5.6.140.0330.04720.34
5.6.130.0370.07720.52
5.6.120.0230.04720.37
5.6.110.0330.07020.22
5.6.100.0330.08020.17
5.6.90.0300.07720.35
5.6.80.0300.07019.57
5.6.70.0300.08019.71
5.6.60.0300.03319.79
5.6.50.0370.06719.82
5.6.40.0330.06019.73
5.6.30.0270.05319.59
5.6.20.0330.07019.86
5.6.10.0330.07019.86
5.6.00.0270.07319.85
5.5.350.0300.07320.38
5.5.340.0030.08017.98
5.5.330.0270.04020.47
5.5.320.0300.04020.26
5.5.310.0430.06320.37
5.5.300.0200.06719.98
5.5.290.0400.05020.25
5.5.280.0370.07020.04
5.5.270.0330.06720.20
5.5.260.0330.07020.19
5.5.250.0430.06719.84
5.5.240.0270.04719.59
5.5.230.0270.06719.53
5.5.220.0400.02719.35
5.5.210.0330.05719.61
5.5.200.0330.07719.59
5.5.190.0300.04019.34
5.5.180.0330.07019.65
5.5.160.0370.06719.66
5.5.150.0230.04719.64
5.5.140.0200.04719.61
5.5.130.0230.08319.64
5.5.120.0230.04319.55
5.5.110.0400.06319.46
5.5.100.0300.07019.41
5.5.90.0330.07019.46
5.5.80.0270.06019.39
5.5.70.0270.03719.56
5.5.60.0400.06319.45
5.5.50.0230.04319.48
5.5.40.0400.05019.49
5.5.30.0370.06719.37
5.5.20.0400.06719.27
5.5.10.0270.07719.46
5.5.00.0330.08019.48
5.4.450.0300.06719.53
5.4.440.0230.04319.40
5.4.430.0330.07019.47
5.4.420.0430.05719.33
5.4.410.0230.04019.33
5.4.400.0270.04319.08
5.4.390.0230.06718.98
5.4.380.0270.04718.87
5.4.370.0270.03719.15
5.4.360.0300.07018.97
5.4.350.0270.05019.24
5.4.340.0300.06719.20
5.4.320.0270.04718.93
5.4.310.0170.05319.21
5.4.300.0230.04019.24
5.4.290.0270.03319.28
5.4.280.0300.04318.93
5.4.270.0300.05719.14
5.4.260.0370.06018.98
5.4.250.0330.06718.87
5.4.240.0300.04018.85
5.4.230.0270.03319.24
5.4.220.0330.04319.15
5.4.210.0330.07018.97
5.4.200.0270.07319.00
5.4.190.0270.07019.14
5.4.180.0330.05719.14
5.4.170.0270.03719.14
5.4.160.0270.07018.96
5.4.150.0230.07719.16
5.4.140.0300.06316.48
5.4.130.0270.06316.45
5.4.120.0330.06316.45
5.4.110.0330.06016.43
5.4.100.0270.07316.52
5.4.90.0400.04316.48
5.4.80.0300.03716.54
5.4.70.0230.03716.46
5.4.60.0370.05716.38
5.4.50.0230.04316.35
5.4.40.0300.06716.35
5.4.30.0270.07316.40
5.4.20.0230.03716.38
5.4.10.0330.06316.26
5.4.00.0330.06315.70
5.3.290.0230.03714.68
5.3.280.0230.04314.60
5.3.270.0300.03314.54
5.3.260.0300.07314.50
5.3.250.0300.06714.65
5.3.240.0270.07714.60
5.3.230.0400.05714.49
5.3.220.0300.04714.58
5.3.210.0400.06014.58
5.3.200.0370.06714.60
5.3.190.0270.06014.60
5.3.180.0330.06714.59
5.3.170.0330.06014.62
5.3.160.0330.07014.64
5.3.150.0300.06714.58
5.3.140.0330.06314.63
5.3.130.0330.04314.59
5.3.120.0270.04014.44
5.3.110.0270.05014.62
5.3.100.0300.06314.07
5.3.90.0230.04014.02
5.3.80.0300.05714.06
5.3.70.0270.06714.18
5.3.60.0300.06313.95
5.3.50.0230.07713.85
5.3.40.0230.05013.99
5.3.30.0230.04714.06
5.3.20.0370.06013.72
5.3.10.0230.06013.82
5.3.00.0330.02713.68
5.2.170.0270.05712.92
5.2.160.0230.05312.92
5.2.150.0270.05712.92
5.2.140.0200.06712.92
5.2.130.0230.06012.92
5.2.120.0270.05312.92
5.2.110.0170.03312.92
5.2.100.0230.05712.92
5.2.90.0270.04312.92
5.2.80.0230.06012.92
5.2.70.0300.04012.92
5.2.60.0270.05712.92
5.2.50.0270.05712.92
5.2.40.0230.06012.92
5.2.30.0130.06012.92
5.2.20.0270.04312.92
5.2.10.0230.04312.92
5.2.00.0200.05312.92
5.1.60.0230.05012.92
5.1.50.0170.03712.92
5.1.40.0230.04712.92
5.1.30.0230.05012.92
5.1.20.0230.05012.92
5.1.10.0300.04712.92
5.1.00.0230.05012.92
5.0.50.0100.04712.92
5.0.40.0170.02312.92
5.0.30.0100.03312.92
5.0.20.0100.02712.92
5.0.10.0070.02012.92
5.0.00.0070.03012.92
4.4.90.0130.02312.92
4.4.80.0070.02312.92
4.4.70.0070.02312.92
4.4.60.0070.01712.92
4.4.50.0130.03012.92
4.4.40.0070.03712.92
4.4.30.0070.02312.92
4.4.20.0100.03712.92
4.4.10.0130.03012.92
4.4.00.0130.05012.92
4.3.110.0030.02012.92
4.3.100.0070.02012.92
4.3.90.0070.01312.92
4.3.80.0030.02712.92
4.3.70.0030.01712.92
4.3.60.0100.01012.92
4.3.50.0030.01712.92
4.3.40.0100.02012.92
4.3.30.0030.01312.92
4.3.20.0000.01712.92
4.3.10.0000.01712.92
4.3.00.0030.01312.92

preferences:
41.49 ms | 401 KiB | 5 Q