3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { static function baz($var) { echo "Oh the $var of it!\n"; } } (new class { public $arr = ["baz"]; function test( $arg ){ if( is_callable( $this->arr[0],true ) ){ (myClass::$this->arr[0])( $arg ); } } })->test("joy");

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.0060.00916.75
8.3.50.0090.01122.08
8.3.40.0070.00718.93
8.3.30.0080.00618.67
8.3.20.0000.00720.33
8.3.10.0040.00420.48
8.3.00.0080.00023.66
8.2.180.0210.00716.62
8.2.170.0150.00422.96
8.2.160.0100.00722.30
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.65
8.2.120.0040.00426.35
8.2.110.0070.00322.14
8.2.100.0000.01217.84
8.2.90.0040.00419.41
8.2.80.0030.00517.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00822.23
8.2.30.0070.00019.56
8.2.20.0080.00017.92
8.2.10.0000.00818.09
8.2.00.0040.00418.17
8.1.280.0140.00025.92
8.1.270.0040.00422.05
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0070.00320.77
8.1.230.0030.00717.82
8.1.220.0060.00317.75
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0050.00317.10
8.1.180.0030.00518.10
8.1.170.0080.00018.58
8.1.160.0050.00220.62
8.1.150.0000.00820.61
8.1.140.0000.00819.62
8.1.130.0070.00017.66
8.1.120.0030.00517.46
8.1.110.0040.00417.41
8.1.100.0000.00817.29
8.1.90.0040.00417.30
8.1.80.0030.00517.38
8.1.70.0000.00817.27
8.1.60.0030.00617.53
8.1.50.0040.00417.45
8.1.40.0050.00217.47
8.1.30.0050.00317.49
8.1.20.0060.00317.36
8.1.10.0060.00317.52
8.1.00.0070.00017.46
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0050.00317.23
8.0.260.0060.00017.33
8.0.250.0000.00716.99
8.0.240.0000.00717.04
8.0.230.0030.00517.06
8.0.220.0000.00816.96
8.0.210.0000.00616.89
8.0.200.0030.00316.97
8.0.190.0040.00416.99
8.0.180.0050.00316.89
8.0.170.0040.00416.88
8.0.160.0050.00516.96
8.0.150.0000.00816.88
8.0.140.0040.00416.91
8.0.130.0030.00313.34
8.0.120.0040.00416.90
8.0.110.0040.00416.95
8.0.100.0040.00417.02
8.0.90.0060.00316.96
8.0.80.0110.00516.91
8.0.70.0000.00717.05
8.0.60.0000.00716.96
8.0.50.0040.00416.96
8.0.30.0110.00817.16
8.0.20.0110.00717.40
8.0.10.0040.00416.89
8.0.00.0070.01116.90
7.4.330.0050.00016.67
7.4.320.0000.00616.45
7.4.300.0080.00016.45
7.4.290.0070.00016.53
7.4.280.0040.00416.34
7.4.270.0000.00716.45
7.4.260.0000.01116.45
7.4.250.0000.00816.31
7.4.240.0080.00016.54
7.4.230.0030.00316.64
7.4.220.0040.01116.66
7.4.210.0080.00916.52
7.4.200.0050.00216.42
7.4.160.0080.00816.55
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0100.00816.62
7.4.120.0100.00716.58
7.4.110.0070.01016.64
7.4.100.0130.00416.34
7.4.90.0090.00916.48
7.4.80.0070.01019.39
7.4.70.0080.00816.50
7.4.60.0110.00616.41
7.4.50.0060.00916.71
7.4.40.0080.00816.60
7.4.30.0150.00816.64
7.4.00.0030.01014.85
7.3.330.0020.00213.36
7.3.320.0000.00613.41
7.3.310.0000.00716.27
7.3.300.0000.00716.47
7.3.290.0030.00316.29
7.3.280.0130.00616.44
7.3.270.0090.00917.40
7.3.260.0130.00616.36
7.3.250.0120.00616.43
7.3.240.0050.01416.51
7.3.230.0100.00716.52
7.3.210.0090.00916.42
7.3.200.0110.01116.57
7.3.190.0100.00716.43
7.3.180.0090.01216.27
7.3.170.0110.01116.61
7.3.160.0000.01516.46
7.2.330.0060.01216.66
7.2.320.0090.00916.73
7.2.310.0130.00616.77
7.2.300.0040.01216.61
7.2.290.0000.01516.70
7.2.60.0040.01116.93
7.2.00.0030.00719.12
7.1.200.0080.00615.69
7.1.100.0040.00817.73
7.1.70.0060.00616.95
7.1.60.0130.01319.40
7.1.50.0030.00916.61
7.1.00.0030.07022.44
7.0.200.0730.00314.40
7.0.60.0230.08719.91
7.0.50.0130.07717.95
7.0.40.0070.07020.15
7.0.30.0170.04020.07
7.0.20.0100.07320.03
7.0.10.0030.08720.15
7.0.00.0070.06020.22
5.6.280.0000.03321.16
5.6.210.0100.08020.51
5.6.200.0030.04318.16
5.6.190.0170.07320.43
5.6.180.0300.07720.61
5.6.170.0300.07320.44
5.6.160.0030.07720.50
5.6.150.0030.04318.11
5.6.140.0100.07718.24
5.6.130.0130.04718.19
5.6.120.0130.07721.13
5.6.110.0200.07321.04
5.6.100.0070.04021.01
5.6.90.0130.07320.98
5.6.80.0130.06020.54
5.5.350.0100.07020.45
5.5.340.0100.04317.94
5.5.330.0070.04020.15
5.5.320.0600.07020.30
5.5.310.0330.06720.37
5.5.300.0070.04317.99
5.5.290.0100.06718.05
5.5.280.0070.08720.77
5.5.270.0400.05020.73
5.5.260.0170.06720.87
5.5.250.0130.05320.69
5.5.240.0330.06320.26

preferences:
33.42 ms | 401 KiB | 5 Q