3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HelloWorld { public function sayHello($mixed): void { if (ctype_digit((string) $mixed)) { var_dump($mixed); } if (ctype_digit((int) $mixed)) { var_dump($mixed); } } } $h = new HelloWorld(); $h->sayHello(4);

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.4.120.0110.00920.54
8.4.110.0140.00620.57
8.4.100.0130.00817.98
8.4.90.0070.00117.70
8.4.80.0120.00917.75
8.4.70.0140.00818.10
8.4.60.0040.00418.56
8.4.50.0140.00817.81
8.4.40.0060.00319.42
8.4.30.0130.00620.75
8.4.20.0000.00822.55
8.4.10.0060.00323.80
8.3.250.0130.00518.71
8.3.240.0100.00916.61
8.3.230.0100.00916.58
8.3.220.0120.00616.82
8.3.210.0060.01216.76
8.3.200.0030.00616.76
8.3.190.0100.00919.08
8.3.180.0110.01016.91
8.3.170.0170.00018.94
8.3.160.0120.00318.33
8.3.150.0110.00720.34
8.3.140.0120.00318.82
8.3.130.0070.00718.54
8.3.120.0070.00418.84
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0040.00418.68
8.3.70.0140.00418.43
8.3.60.0100.00716.63
8.3.50.0060.01016.76
8.3.40.0100.00320.21
8.3.30.0110.00418.50
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00819.11
8.2.280.0110.00818.57
8.2.270.0110.00717.00
8.2.260.0100.00616.48
8.2.250.0080.00016.89
8.2.240.0080.00018.99
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0000.01826.77
8.2.200.0110.00016.75
8.2.190.0040.01116.58
8.2.180.0030.01716.63
8.2.170.0140.00718.83
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00020.94
8.2.110.0060.00320.33
8.2.100.0080.00417.78
8.2.90.0070.00417.78
8.2.80.0000.00917.38
8.2.70.0030.00617.63
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0000.00819.75
8.2.30.0000.00817.89
8.2.20.0000.00819.18
8.2.10.0030.00517.54
8.2.00.0080.00017.55
8.1.330.0130.00616.13
8.1.320.0140.00616.25
8.1.310.0110.00716.71
8.1.300.0060.00320.05
8.1.290.0040.00430.84
8.1.280.0170.00025.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00319.22
8.1.230.0090.00322.55
8.1.220.0080.00017.74
8.1.210.0060.00318.89
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.01018.71
8.1.160.0000.00718.77
8.1.150.0070.00018.62
8.1.140.0040.00417.35
8.1.130.0030.00617.35
8.1.120.0040.00417.33
8.1.110.0000.00817.41
8.1.100.0000.00817.34
8.1.90.0030.00517.45
8.1.80.0040.00417.36
8.1.70.0060.00317.38
8.1.60.0060.00317.63
8.1.50.0050.00217.44
8.1.40.0040.00417.49
8.1.30.0070.00017.54
8.1.20.0040.00417.58
8.1.10.0070.00017.45
8.1.00.0040.00417.46
8.0.300.0040.00419.98
8.0.290.0000.00716.63
8.0.280.0070.00018.45
8.0.270.0040.00416.73
8.0.260.0080.00016.66
8.0.250.0030.00316.70
8.0.240.0030.00516.80
8.0.230.0030.00316.80
8.0.220.0050.00316.73
8.0.210.0000.00716.75
8.0.200.0040.00416.81
8.0.190.0030.00316.82
8.0.180.0070.00016.72
8.0.170.0040.00416.76
8.0.160.0030.00516.84
8.0.150.0070.00016.69
8.0.140.0000.00716.73
8.0.130.0050.00316.62
8.0.120.0080.00016.65
8.0.110.0000.00716.64
8.0.100.0050.00216.84
8.0.90.0070.00016.77
8.0.80.0000.00716.70
8.0.70.0000.00816.63
8.0.60.0030.00516.59
8.0.50.0070.00316.75
8.0.30.0030.00516.69
8.0.20.0080.00016.80
8.0.10.0050.00216.93

preferences:
27.37 ms | 403 KiB | 5 Q