3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myIntegerOrComplexObject = new stdClass(); switch( $myIntegerOrComplexObject ) { case 1: echo "blub"; break; case 2: echo "bla"; break; default: echo "This is probably an object or a int other than 1 & 2"; }

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.5.30.0260.00616.50
8.5.20.0280.00816.48
8.5.10.0400.00616.48
8.5.00.0290.00616.35
8.4.180.0200.00819.56
8.4.170.0250.00419.62
8.4.160.0110.00719.61
8.4.150.0110.00719.66
8.4.140.0150.00817.52
8.4.130.0290.01117.57
8.4.120.0220.00817.49
8.4.110.0310.00917.93
8.4.100.0290.00617.87
8.4.90.0290.00917.69
8.4.80.0280.00717.88
8.4.70.0300.01017.82
8.4.60.0350.01017.75
8.4.50.0420.00817.82
8.4.40.0370.00917.71
8.4.30.0390.00917.59
8.4.20.0360.01017.61
8.4.10.0430.00917.67
8.3.300.0300.01318.15
8.3.290.0270.01118.38
8.3.280.0230.01018.32
8.3.270.0360.00716.76
8.3.260.0370.00716.63
8.3.250.0360.00516.65
8.3.240.0280.00816.64
8.3.230.0390.00616.63
8.3.220.0340.00716.80
8.3.210.0320.00816.67
8.3.200.0340.00716.51
8.3.190.0340.00616.83
8.3.180.0360.00916.59
8.3.170.0370.00916.72
8.3.160.0330.00816.54
8.3.150.0260.00516.61
8.3.140.0260.00416.67
8.3.130.0250.00616.61
8.3.120.0160.00416.60
8.3.110.0160.00516.81
8.3.100.0270.00816.78
8.3.90.0230.00416.84
8.3.80.0310.00916.48
8.3.70.0210.00516.79
8.3.60.0180.00616.68
8.3.50.0270.00816.64
8.3.40.0290.00617.75
8.3.30.0300.00917.73
8.3.20.0250.00817.83
8.3.10.0280.00717.74
8.3.00.0250.01217.67

preferences:
51.02 ms | 709 KiB | 5 Q