3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo1() { echo 1; } $foo1 = 'foo1'; $foo1(); $foo2 = function () { echo 2; }; $foo2(); class Three { public function __invoke() { echo 3; } } $foo3 = new Three(); $foo3(); class Bar { static function foo4() { echo 4;} function foo5() { echo 5; } } $foo3 = array('Bar','foo4'); $foo3(); // we should make this work $foo4 = array(new Bar, 'foo5'); $foo4(); // we should make this work

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.0180.00316.50
8.3.50.0100.01022.12
8.3.40.0060.00918.90
8.3.30.0100.00319.13
8.3.20.0050.00320.16
8.3.10.0040.00423.66
8.3.00.0050.00319.25
8.2.180.0080.00818.31
8.2.170.0070.00722.96
8.2.160.0070.01320.39
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0020.00522.25
8.2.110.0090.00920.52
8.2.100.0090.00417.77
8.2.90.0030.00518.98
8.2.80.0000.00917.97
8.2.70.0080.00017.50
8.2.60.0000.00818.03
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00717.98
8.2.20.0040.00417.75
8.2.10.0040.00418.14
8.2.00.0030.00617.76
8.1.280.0180.00325.92
8.1.270.0070.00022.05
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00723.76
8.1.230.0040.00722.81
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00717.23
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0050.00518.58
8.1.160.0040.00421.97
8.1.150.0050.00318.67
8.1.140.0080.00017.42
8.1.130.0000.00717.91
8.1.120.0070.00017.37
8.1.110.0000.00917.46
8.1.100.0000.00817.40
8.1.90.0040.00417.48
8.1.80.0070.00017.46
8.1.70.0000.00717.40
8.1.60.0040.00417.48
8.1.50.0000.00817.43
8.1.40.0050.00217.57
8.1.30.0040.00417.63
8.1.20.0000.00717.70
8.1.10.0030.00617.59
8.1.00.0000.00717.52
8.0.300.0070.00020.02
8.0.290.0030.00616.75
8.0.280.0070.00018.50
8.0.270.0070.00017.20
8.0.260.0070.00016.83
8.0.250.0030.00417.02
8.0.240.0000.00716.97
8.0.230.0030.00316.97
8.0.220.0030.00316.94
8.0.210.0000.00716.76
8.0.200.0000.00717.02
8.0.190.0030.00416.95
8.0.180.0040.00416.93
8.0.170.0000.00916.88
8.0.160.0000.00716.83
8.0.150.0040.00716.88
8.0.140.0050.00316.85
8.0.130.0030.00513.37
8.0.120.0080.00016.77
8.0.110.0000.00816.82
8.0.100.0040.00416.77
8.0.90.0040.00416.84
8.0.80.0070.00716.84
8.0.70.0050.00316.74
8.0.60.0040.00416.96
8.0.50.0000.00816.71
8.0.30.0100.01317.02
8.0.20.0110.00717.40
8.0.10.0000.00717.08
8.0.00.0170.00616.74
7.4.330.0000.00515.07
7.4.320.0040.00416.53
7.4.300.0030.00316.52
7.4.290.0090.00016.55
7.4.280.0000.00716.41
7.4.270.0080.00016.59
7.4.260.0070.00016.59
7.4.250.0080.00016.49
7.4.240.0020.00616.51
7.4.230.0000.00716.50
7.4.220.0030.01416.70
7.4.210.0050.01216.60
7.4.200.0040.00416.60
7.4.190.0030.00316.41
7.4.160.0070.01016.48
7.4.150.0060.01217.40
7.4.140.0110.00617.86
7.4.130.0060.01116.55
7.4.120.0120.00816.57
7.4.110.0130.00416.49
7.4.100.0070.01416.59
7.4.90.0120.01216.59
7.4.80.0090.00919.39
7.4.70.0130.00316.42
7.4.60.0060.01116.51
7.4.50.0030.00516.39
7.4.40.0030.01322.77
7.4.30.0100.00716.63
7.4.00.0120.00315.04
7.3.330.0030.00613.23
7.3.320.0060.00013.41
7.3.310.0070.00016.19
7.3.300.0030.00316.32
7.3.290.0080.00816.24
7.3.280.0060.00916.27
7.3.270.0100.01217.40
7.3.260.0090.00916.67
7.3.250.0080.01016.48
7.3.240.0110.00816.55
7.3.230.0070.01416.52
7.3.210.0130.01016.32
7.3.200.0110.00819.39
7.3.190.0040.01216.28
7.3.180.0120.00516.23
7.3.170.0040.01216.60
7.3.160.0120.00316.39
7.3.120.0060.00914.89
7.3.00.0050.00316.72
7.2.330.0090.00916.71
7.2.320.0090.01216.66
7.2.310.0040.01216.77
7.2.300.0060.01116.74
7.2.290.0100.00616.67
7.2.130.0130.00316.62
7.2.120.0000.01216.84
7.2.110.0000.01416.72
7.2.100.0060.00616.85
7.2.90.0070.01016.88
7.2.80.0070.00717.07
7.2.70.0030.01016.87
7.2.60.0020.01017.02
7.2.50.0100.00316.96
7.2.40.0070.00716.79
7.2.30.0070.01116.80
7.2.20.0100.00316.90
7.2.10.0040.00816.59
7.2.00.0020.01218.17
7.1.250.0060.00315.43
7.1.240.0060.01015.44
7.1.230.0030.01215.39
7.1.220.0040.00715.73
7.1.210.0030.01015.43
7.1.200.0050.00815.75
7.1.190.0040.01115.80
7.1.180.0120.00615.84
7.1.170.0060.00315.68
7.1.160.0000.01215.76
7.1.150.0090.00615.72
7.1.140.0080.00015.70
7.1.130.0100.00315.74
7.1.120.0000.00915.72
7.1.110.0040.01115.60
7.1.100.0050.00816.70
7.1.90.0100.00315.66
7.1.80.0030.00515.72
7.1.70.0060.00816.34
7.1.60.0070.01217.35
7.1.50.0070.01016.19
7.1.40.0000.00715.69
7.1.30.0100.00015.59
7.1.20.0060.00615.73
7.1.10.0040.00815.72
7.1.00.0030.04118.96
7.0.330.0080.00415.31
7.0.320.0030.00615.29
7.0.310.0110.00415.23
7.0.300.0100.00615.10
7.0.290.0060.00614.71
7.0.280.0070.00315.34
7.0.270.0130.00315.14
7.0.260.0060.00315.24
7.0.250.0060.00315.46
7.0.240.0120.00314.91
7.0.230.0000.01015.32
7.0.220.0030.00915.31
7.0.210.0080.00014.86
7.0.200.0090.00215.90
7.0.190.0040.00815.31
7.0.180.0080.00615.08
7.0.170.0030.00915.10
7.0.160.0000.01015.30
7.0.150.0030.01015.03
7.0.140.0070.03718.58
7.0.130.0030.00315.43
7.0.120.0090.00315.02
7.0.110.0030.00715.19
7.0.100.0170.03217.53
7.0.90.0180.04817.46
7.0.80.0150.04717.58
7.0.70.0180.04317.53
7.0.60.0200.03717.63
7.0.50.0020.05417.89
7.0.40.0050.02416.62
7.0.30.0070.04216.70
7.0.20.0050.04216.58
7.0.10.0080.04516.63
7.0.00.0080.03716.77
5.6.380.0070.00714.23
5.6.370.0080.00014.16
5.6.360.0080.00014.09
5.6.350.0030.01013.86
5.6.340.0040.00914.36
5.6.330.0040.00814.21
5.6.320.0060.00614.36
5.6.310.0120.00314.38
5.6.300.0030.00714.08
5.6.290.0040.01114.52
5.6.280.0070.00714.36
5.6.270.0020.01014.06
5.6.260.0070.00314.46
5.6.250.0080.04317.52
5.6.240.0080.03517.54
5.6.230.0120.04017.25
5.6.220.0020.05217.31
5.6.210.0080.04117.46
5.6.200.0090.03417.65
5.6.190.0100.03317.66
5.6.180.0090.03217.55
5.6.170.0070.04717.45
5.6.160.0080.04317.68
5.6.150.0100.04317.60
5.6.140.0130.04017.65
5.6.130.0080.03717.65
5.6.120.0130.02817.57
5.6.110.0100.04317.63
5.6.100.0070.04917.60
5.6.90.0070.04117.75
5.6.80.0120.03717.21
5.6.70.0120.03617.21
5.6.60.0050.04417.12
5.6.50.0040.04617.12
5.6.40.0090.04317.41
5.6.30.0120.03517.42
5.6.20.0050.03317.35
5.6.10.0110.04017.41
5.6.00.0080.03817.19
5.5.380.0050.04315.65
5.5.370.0050.04315.77
5.5.360.0050.04615.61
5.5.350.0070.03815.64
5.5.340.0070.02315.99
5.5.330.0050.04115.99
5.5.320.0020.04816.06
5.5.310.0070.04515.90
5.5.300.0060.03615.88
5.5.290.0060.04315.87
5.5.280.0070.03715.85
5.5.270.0030.02815.83
5.5.260.0060.03915.85
5.5.250.0120.03715.74
5.5.240.0130.04015.53
5.5.230.0060.04215.58
5.5.220.0090.04015.51
5.5.210.0070.04215.62
5.5.200.0140.03615.60
5.5.190.0070.04615.55
5.5.180.0070.04315.59
5.5.170.0050.00310.93
5.5.160.0070.04315.63
5.5.150.0020.05015.48
5.5.140.0050.03815.53
5.5.130.0100.03715.54
5.5.120.0100.03815.62
5.5.110.0000.02915.63
5.5.100.0110.02815.67
5.5.90.0080.04215.42
5.5.80.0030.04315.54
5.5.70.0140.03315.51
5.5.60.0030.04115.67
5.5.50.0070.02515.50
5.5.40.0030.03815.47
5.5.30.0030.04415.53
5.5.20.0090.04115.56
5.5.10.0070.03415.59
5.5.00.0080.03615.52
5.4.450.0100.04015.04
5.4.440.0040.04615.24
5.4.430.0020.04515.28
5.4.420.0080.04015.15
5.4.410.0000.04715.13
5.4.400.0090.04214.99
5.4.390.0050.04514.99
5.4.380.0120.03015.10
5.4.370.0050.04615.08
5.4.360.0020.03815.04
5.4.350.0100.03515.11
5.4.340.0040.02314.97
5.4.330.0120.00011.10
5.4.320.0120.03814.93
5.4.310.0050.04315.08
5.4.300.0120.04014.96
5.4.290.0020.04214.96
5.4.280.0130.03515.19
5.4.270.0030.04515.09
5.4.260.0140.02715.01
5.4.250.0060.03515.01
5.4.240.0050.03115.06
5.4.230.0030.02415.01
5.4.220.0020.04415.05
5.4.210.0050.04015.04
5.4.200.0130.02514.97
5.4.190.0100.03514.96
5.4.180.0050.03115.00
5.4.170.0080.04314.88
5.4.160.0110.03514.89
5.4.150.0050.04415.06
5.4.140.0030.04513.72
5.4.130.0040.04013.70
5.4.120.0050.04313.70
5.4.110.0050.04113.66
5.4.100.0080.03813.85
5.4.90.0090.02113.72
5.4.80.0070.03513.72
5.4.70.0120.02713.71
5.4.60.0050.03213.61
5.4.50.0130.02013.57
5.4.40.0100.03513.70
5.4.30.0050.04013.62
5.4.20.0100.03713.59
5.4.10.0070.04113.71
5.4.00.0060.02313.36
5.3.290.0090.03312.83
5.3.280.0050.03912.71
5.3.270.0030.04612.74
5.3.260.0080.02812.79
5.3.250.0020.04112.72
5.3.240.0130.03712.82
5.3.230.0100.03712.78
5.3.220.0030.04412.80
5.3.210.0050.04812.78
5.3.200.0060.04012.78
5.3.190.0080.02712.70
5.3.180.0050.04312.77
5.3.170.0030.04112.77
5.3.160.0090.03612.72
5.3.150.0030.04212.76
5.3.140.0050.04112.78
5.3.130.0070.04312.71
5.3.120.0090.03712.69
5.3.110.0060.04512.71
5.3.100.0050.03012.46
5.3.90.0070.03912.51
5.3.80.0080.03712.47
5.3.70.0080.03812.46
5.3.60.0010.03912.47
5.3.50.0020.03012.43
5.3.40.0080.02212.46
5.3.30.0020.04312.38
5.3.20.0050.03912.35
5.3.10.0060.02812.31
5.3.00.0080.03812.29
5.2.170.0080.02511.09
5.2.160.0080.02511.08
5.2.150.0080.02510.98
5.2.140.0030.03610.98
5.2.130.0090.03111.05
5.2.120.0030.03211.04
5.2.110.0030.02311.03
5.2.100.0080.01811.03
5.2.90.0050.03311.05
5.2.80.0080.02511.00
5.2.70.0080.03010.94
5.2.60.0100.02711.00
5.2.50.0050.03110.98
5.2.40.0030.03410.91
5.2.30.0040.02910.93
5.2.20.0030.03510.93
5.2.10.0020.03310.92
5.2.00.0020.03210.73
5.1.60.0080.02010.46
5.1.50.0060.02810.50
5.1.40.0030.02310.49
5.1.30.0040.02210.55
5.1.20.0030.02210.68
5.1.10.0080.02810.52
5.1.00.0040.03010.48
5.0.50.0000.01810.17
5.0.40.0050.01810.17
5.0.30.0020.01710.17
5.0.20.0050.01710.17
5.0.10.0020.02210.17
5.0.00.0030.03510.17
4.4.90.0000.02010.17
4.4.80.0030.01810.17
4.4.70.0020.02010.17
4.4.60.0000.01110.17
4.4.50.0030.01610.17
4.4.40.0000.03210.17
4.4.30.0040.01810.17
4.4.20.0020.01310.17
4.4.10.0050.01710.17
4.4.00.0070.02310.17
4.3.110.0020.02010.17
4.3.100.0030.01710.17
4.3.90.0050.00810.17
4.3.80.0020.02510.17
4.3.70.0050.01710.17
4.3.60.0030.01810.17
4.3.50.0000.01410.17
4.3.40.0050.02310.17
4.3.30.0050.01810.17
4.3.20.0040.01510.17
4.3.10.0020.02010.17
4.3.00.0020.01810.17

preferences:
42.26 ms | 401 KiB | 5 Q